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 df66d2c commit 6809d9cCopy full SHA for 6809d9c
src/Property/WalkProperty.php
@@ -100,7 +100,7 @@ public function isDigon()
100
// no duplicate edges
101
!$this->hasArrayDuplicates($this->walk->getEdgesSequence()) &&
102
// exactly two distinct vertices
103
- $this->walk->getNumberOfVertices() === 2 &&
+ count($this->walk->getVertices()) === 2 &&
104
// this is actually a cycle
105
$this->isCycle());
106
}
@@ -116,7 +116,7 @@ public function isTriangle()
116
// exactly 3 (implicitly distinct) edges
117
return ($this->walk->getNumberOfEdges() === 3 &&
118
// exactly three distinct vertices
119
- $this->walk->getNumberOfVertices() === 3 &&
+ count($this->walk->getVertices()) === 3 &&
120
121
122
0 commit comments