We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59845d3 commit 72ea516Copy full SHA for 72ea516
src/Property/WalkProperty.php
@@ -61,8 +61,8 @@ public function __construct(Walk $walk)
61
*/
62
public function isCycle()
63
{
64
- $vertices = $this->walk->getVertices()->getVector();
65
- return (reset($vertices) === end($vertices) && !$this->walk->getEdges()->isEmpty());
+ $vertices = $this->walk->getVertices();
+ return ($vertices->getVertexFirst() === $vertices->getVertexLast() && !$this->walk->getEdges()->isEmpty());
66
}
67
68
/**
0 commit comments