Total Complexity | 3 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 63.64% |
Changes | 0 |
1 | <?php |
||
14 | class SimpleDirectedWeightedGraph extends SimpleDirectedGraph |
||
15 | { |
||
16 | /** |
||
17 | * Create a new simple directed weighted graph |
||
18 | * |
||
19 | * @param string $edgeClass - the edge class |
||
20 | * @param SupplierInterface $vertexSupplier - the vertex supplier |
||
21 | * @param SupplierInterface $edgeSupplier - the edge supplier |
||
22 | */ |
||
23 | 5 | public function __construct( |
|
24 | ?string $edgeClass = null, |
||
25 | ?SupplierInterface $vertexSupplier = null, |
||
26 | ?SupplierInterface $edgeSupplier = null |
||
27 | ) { |
||
28 | 5 | parent::__construct( |
|
29 | 5 | $edgeClass, |
|
30 | 5 | $vertexSupplier, |
|
31 | 5 | $edgeSupplier, |
|
32 | 5 | true |
|
33 | ); |
||
34 | 5 | } |
|
35 | |||
36 | /** |
||
37 | * Create a simple directed weighted graph builder |
||
38 | * |
||
39 | * @param string $edgeClass - the edge class |
||
40 | * @param SupplierInterface $edgeSupplier - the edge supplier |
||
41 | * |
||
42 | * @return GraphBuilder |
||
43 | */ |
||
44 | public function createBuilder(?string $edgeClass = null, ?SupplierInterface $edgeSupplier = null): GraphBuilder |
||
50 | } |
||
51 | } |
||
52 |