We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42a9554 commit dba92efCopy full SHA for dba92ef
tests/MinimumSpanningTree/BaseMstTest.php
@@ -49,7 +49,13 @@ public function testSimpleGraph()
49
$graph = new Graph();
50
$v1 = $graph->createVertex(1);
51
$v2 = $graph->createVertex(2);
52
- $v1->createEdge($v2)->setWeight(3);
+ $v3 = $graph->createVertex(3);
53
+ $v4 = $graph->createVertex(4);
54
+ $v5 = $graph->createVertex(5);
55
+ $v1->createEdge($v2)->setWeight(6);
56
+ $v2->createEdge($v3)->setWeight(9);
57
+ $v3->createEdge($v4)->setWeight(7);
58
+ $v4->createEdge($v5)->setWeight(8);
59
60
$alg = $this->createAlg($v1);
61
0 commit comments