Skip to content

Commit 42a9554

Browse files
committed
Merge branch 'master' into improve-minimumspanningtree
2 parents e927c2b + 3f4cc6e commit 42a9554

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
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
}

tests/MaximumMatching/FlowTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function testSingleEdge()
3030
// correct number of edges
3131
$this->assertEquals(1, $alg->getNumberOfMatches());
3232
// actual edge instance returned
33-
$this->assertEquals(array($edge), $alg->getEdges());
33+
$this->assertEquals(array($edge), $alg->getEdges()->getVector());
3434

3535
// check
3636
$flowgraph = $alg->createGraph();

0 commit comments

Comments
 (0)