Skip to content

Commit 76504e5

Browse files
committed
Merge pull request #16 from clue-labs/degree
Support graph v0.9 (while keeping BC)
2 parents a574668 + 05daaa1 commit 76504e5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
],
1313
"require": {
1414
"php": ">=5.3",
15-
"clue/graph": "~0.8.0"
15+
"clue/graph": "~0.9.0|~0.8.0"
1616
},
1717
"require-dev": {
1818
"phpunit/phpunit": "~4.0"

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)