Skip to content

Commit df66d2c

Browse files
committed
Fix accessing invalid graph property due to moving algorithm
1 parent af5b24b commit df66d2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Property/WalkProperty.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public function isSimple()
152152
*/
153153
public function isHamiltonian()
154154
{
155-
return $this->isArrayContentsEqual($this->walk->getVerticesSequence(), $this->getGraph()->getVertices());
155+
return $this->isArrayContentsEqual($this->walk->getVerticesSequence(), $this->walk->getGraph()->getVertices());
156156
}
157157

158158
/**
@@ -165,7 +165,7 @@ public function isHamiltonian()
165165
*/
166166
public function isEulerian()
167167
{
168-
return $this->isArrayContentsEqual($this->walk->getEdgesSequence(), $this->getGraph()->getEdges());
168+
return $this->isArrayContentsEqual($this->walk->getEdgesSequence(), $this->walk->getGraph()->getEdges());
169169
}
170170

171171
/**

0 commit comments

Comments
 (0)