File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 3
3
namespace Fhaculty \Graph \Algorithm ;
4
4
5
5
use Fhaculty \Graph \Algorithm \Base ;
6
- use Fhaculty \Graph \Set ;
6
+ use Fhaculty \Graph \Set \ DualAggregate ;
7
7
use Fhaculty \Graph \Graph ;
8
8
use Fhaculty \Graph \Walk ;
9
9
12
12
*
13
13
* @see Set
14
14
*/
15
- abstract class BaseSet extends Base
15
+ abstract class BaseDual extends Base
16
16
{
17
17
/**
18
18
* Set to operate on
19
19
*
20
- * @var Set
20
+ * @var DualAggregate
21
21
*/
22
22
protected $ set ;
23
23
@@ -26,7 +26,7 @@ abstract class BaseSet extends Base
26
26
*
27
27
* @param Graph|Walk|Set $graphOrWalk either the Graph or Walk to operate on (or the common base class Set)
28
28
*/
29
- public function __construct (Set $ graphOrWalk )
29
+ public function __construct (DualAggregate $ graphOrWalk )
30
30
{
31
31
$ this ->set = $ graphOrWalk ;
32
32
}
Original file line number Diff line number Diff line change 11
11
* @link http://en.wikipedia.org/wiki/Glossary_of_graph_theory#Direction
12
12
* @link http://en.wikipedia.org/wiki/Digraph_%28mathematics%29
13
13
*/
14
- class Directed extends BaseSet
14
+ class Directed extends BaseDual
15
15
{
16
16
/**
17
17
* checks whether the graph has any directed edges (aka digraph)
Original file line number Diff line number Diff line change 18
18
* @link http://en.wikipedia.org/wiki/Flow_network
19
19
* @see Algorithm\Balance
20
20
*/
21
- class Flow extends BaseSet
21
+ class Flow extends BaseDual
22
22
{
23
23
/**
24
24
* check if this graph has any flow set (any edge has a non-NULL flow)
Original file line number Diff line number Diff line change 2
2
3
3
namespace Fhaculty \Graph \Algorithm ;
4
4
5
- use Fhaculty \Graph \Algorithm \BaseSet ;
5
+ use Fhaculty \Graph \Algorithm \BaseDual ;
6
6
use Fhaculty \Graph \Edge \Base as Edge ;
7
7
use Fhaculty \Graph \Vertex ;
8
8
14
14
*
15
15
* @link http://en.wikipedia.org/wiki/Loop_%28graph_theory%29
16
16
*/
17
- class Loop extends BaseSet
17
+ class Loop extends BaseDual
18
18
{
19
19
/**
20
20
* checks whether this graph has any loops (edges from vertex to itself)
Original file line number Diff line number Diff line change 15
15
*
16
16
* @link http://en.wikipedia.org/wiki/Glossary_of_graph_theory#Weighted_graphs_and_networks
17
17
*/
18
- class Weight extends BaseSet
18
+ class Weight extends BaseDual
19
19
{
20
20
/**
21
21
* checks whether this graph has any weighted edges
You can’t perform that action at this time.
0 commit comments