Skip to content

Commit e6458fa

Browse files
committed
Update references to new Set\DualAggregate
Rename Algorithm\BaseSet to Algorithm\BaseDual
1 parent 9635dcd commit e6458fa

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

src/BaseSet.php renamed to src/BaseDual.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace Fhaculty\Graph\Algorithm;
44

55
use Fhaculty\Graph\Algorithm\Base;
6-
use Fhaculty\Graph\Set;
6+
use Fhaculty\Graph\Set\DualAggregate;
77
use Fhaculty\Graph\Graph;
88
use Fhaculty\Graph\Walk;
99

@@ -12,12 +12,12 @@
1212
*
1313
* @see Set
1414
*/
15-
abstract class BaseSet extends Base
15+
abstract class BaseDual extends Base
1616
{
1717
/**
1818
* Set to operate on
1919
*
20-
* @var Set
20+
* @var DualAggregate
2121
*/
2222
protected $set;
2323

@@ -26,7 +26,7 @@ abstract class BaseSet extends Base
2626
*
2727
* @param Graph|Walk|Set $graphOrWalk either the Graph or Walk to operate on (or the common base class Set)
2828
*/
29-
public function __construct(Set $graphOrWalk)
29+
public function __construct(DualAggregate $graphOrWalk)
3030
{
3131
$this->set = $graphOrWalk;
3232
}

src/Directed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @link http://en.wikipedia.org/wiki/Glossary_of_graph_theory#Direction
1212
* @link http://en.wikipedia.org/wiki/Digraph_%28mathematics%29
1313
*/
14-
class Directed extends BaseSet
14+
class Directed extends BaseDual
1515
{
1616
/**
1717
* checks whether the graph has any directed edges (aka digraph)

src/Flow.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* @link http://en.wikipedia.org/wiki/Flow_network
1919
* @see Algorithm\Balance
2020
*/
21-
class Flow extends BaseSet
21+
class Flow extends BaseDual
2222
{
2323
/**
2424
* check if this graph has any flow set (any edge has a non-NULL flow)

src/Loop.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Fhaculty\Graph\Algorithm;
44

5-
use Fhaculty\Graph\Algorithm\BaseSet;
5+
use Fhaculty\Graph\Algorithm\BaseDual;
66
use Fhaculty\Graph\Edge\Base as Edge;
77
use Fhaculty\Graph\Vertex;
88

@@ -14,7 +14,7 @@
1414
*
1515
* @link http://en.wikipedia.org/wiki/Loop_%28graph_theory%29
1616
*/
17-
class Loop extends BaseSet
17+
class Loop extends BaseDual
1818
{
1919
/**
2020
* checks whether this graph has any loops (edges from vertex to itself)

src/Weight.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
* @link http://en.wikipedia.org/wiki/Glossary_of_graph_theory#Weighted_graphs_and_networks
1717
*/
18-
class Weight extends BaseSet
18+
class Weight extends BaseDual
1919
{
2020
/**
2121
* checks whether this graph has any weighted edges

0 commit comments

Comments
 (0)