Skip to content

Commit f11a645

Browse files
committed
Remove unneeded methods getVerticesIds() and getVerticesId()
1 parent 0883d30 commit f11a645

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/TrivialGraphFormat.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ public function getOutput(Graph $graph)
3838
$output .= '#' . self::EOL;
3939

4040
foreach ($graph->getEdges() as $edge) {
41-
$ids = $edge->getVerticesId();
41+
/* @var $edge Edge */
42+
$ids = $edge->getVertices()->getIds();
4243
$a = $tids[$ids[0]];
4344
$b = $tids[$ids[1]];
4445

0 commit comments

Comments
 (0)