Skip to content

Commit 0883d30

Browse files
committed
Each getVertices*() method should return a Set\Vertices instance
1 parent 1424021 commit 0883d30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TrivialGraphFormat.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function getOutput(Graph $graph)
2929
$tid = 1;
3030
$tids = array();
3131

32-
foreach ($graph->getVertices() as $vid => $vertex) {
32+
foreach ($graph->getVertices()->getMap() as $vid => $vertex) {
3333
$output .= $tid . ' ' . $this->getVertexLabel($vertex) . self::EOL;
3434
$tids[$vid] = $tid++;
3535
}

0 commit comments

Comments
 (0)