Skip to content

Commit af5b24b

Browse files
committed
Fix WalkProperty::hasCycle() by checking correct array of vertices
1 parent e1ad5b4 commit af5b24b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Property/WalkProperty.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function __construct(Walk $walk)
2828
*/
2929
public function isCycle()
3030
{
31-
$vertices = $this->walk->getVertices();
31+
$vertices = $this->walk->getVerticesSequence();
3232
return (reset($vertices) === end($vertices));
3333
}
3434

0 commit comments

Comments
 (0)