Skip to content

Commit 0bac316

Browse files
committed
Remove requirement for existing edges
1 parent daa0b6a commit 0bac316

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/MinimumSpanningTree/Kruskal.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,6 @@ public function getEdges()
6161
}
6262
}
6363

64-
if ($sortedEdges->isEmpty()) {
65-
throw new RuntimeException('No edges found');
66-
}
67-
6864
// $sortedEdges = $this->graph->getEdgesOrdered('weight');
6965

7066
$returnEdges = array();

0 commit comments

Comments
 (0)