File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 11
11
use Fhaculty \Graph \Algorithm \MaxFlow \EdmondsKarp as MaxFlowEdmondsKarp ;
12
12
use Fhaculty \Graph \Algorithm \Groups ;
13
13
use Fhaculty \Graph \Exception ;
14
+ use Fhaculty \Graph \Set \Edges ;
14
15
15
16
class Flow extends Base
16
17
{
@@ -81,6 +82,6 @@ public function getEdges()
81
82
}
82
83
}
83
84
84
- return $ returnEdges ;
85
+ return new Edges ( $ returnEdges) ;
85
86
}
86
87
}
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public function testSingleEdge()
30
30
// correct number of edges
31
31
$ this ->assertEquals (1 , $ alg ->getNumberOfMatches ());
32
32
// actual edge instance returned
33
- $ this ->assertEquals (array ($ edge ), $ alg ->getEdges ());
33
+ $ this ->assertEquals (array ($ edge ), $ alg ->getEdges ()-> getVector () );
34
34
35
35
// check
36
36
$ flowgraph = $ alg ->createGraph ();
You can’t perform that action at this time.
0 commit comments