Skip to content

Commit 5563054

Browse files
committed
Simplify getting min/max degree
1 parent c6f3db2 commit 5563054

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Degree.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function getDegree()
5555
*/
5656
public function getDegreeMin()
5757
{
58-
return $this->getDegreeVertex($this->graph->getVertices()->getVertexOrder(Vertices::ORDER_DEGREE));
58+
return $this->getDegreeVertex($this->graph->getVertices()->getVertexOrder(array($this, 'getDegreeVertex')));
5959
}
6060

6161
/**
@@ -68,7 +68,7 @@ public function getDegreeMin()
6868
*/
6969
public function getDegreeMax()
7070
{
71-
return $this->getDegreeVertex($this->graph->getVertices()->getVertexOrder(Vertices::ORDER_DEGREE, true));
71+
return $this->getDegreeVertex($this->graph->getVertices()->getVertexOrder(array($this, 'getDegreeVertex'), true));
7272
}
7373

7474
/**

0 commit comments

Comments
 (0)