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 0bcd6d5 commit a392211Copy full SHA for a392211
src/MinimumSpanningTree/Prim.php
@@ -56,8 +56,7 @@ public function getEdges()
56
$cheapestEdge = $edgeQueue->extract();
57
/* @var $cheapestEdge EdgeDirected */
58
} catch (Exception $e) {
59
- return $returnEdges;
60
- throw new UnexpectedValueException('Graph has more than one component');
+ throw new UnexpectedValueException('Graph has more than one component', 0, $e);
61
}
62
63
// Check if edge is between unmarked and marked edge
0 commit comments