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 7d00d6d commit 3af5b4aCopy full SHA for 3af5b4a
src/Parallel.php
@@ -5,6 +5,7 @@
5
use Fhaculty\Graph\Algorithm\BaseGraph;
6
use Fhaculty\Graph\Edge\Base as Edge;
7
use Fhaculty\Graph\Graph;
8
+use LogicException;
9
10
/**
11
* Basic algorithms for working with parallel edges
@@ -70,8 +71,11 @@ public function getEdgesParallelEdge(Edge $edge)
70
71
}
72
73
$pos = array_search($edge, $edges, true);
74
+
75
if ($pos === false) {
76
+ // @codeCoverageIgnoreStart
77
throw new LogicException('Internal error: Current edge not found');
78
+ // @codeCoverageIgnoreEnd
79
80
81
// exclude current edge from parallel edges
0 commit comments