Skip to content

Commit 80f8aea

Browse files
committed
Fix leftover array of Edges
1 parent daa0b6a commit 80f8aea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/MaximumMatching/Flow.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use Fhaculty\Graph\Algorithm\MaxFlow\EdmondsKarp as MaxFlowEdmondsKarp;
1212
use Fhaculty\Graph\Algorithm\Groups;
1313
use Fhaculty\Graph\Exception;
14+
use Fhaculty\Graph\Set\Edges;
1415

1516
class Flow extends Base
1617
{
@@ -81,6 +82,6 @@ public function getEdges()
8182
}
8283
}
8384

84-
return $returnEdges;
85+
return new Edges($returnEdges);
8586
}
8687
}

0 commit comments

Comments
 (0)