File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 5
5
use Fhaculty \Graph \Set ;
6
6
use Fhaculty \Graph \Algorithm \Base ;
7
7
use Fhaculty \Graph \Edge \Directed as EdgeDirected ;
8
+ use Fhaculty \Graph \Graph ;
9
+ use Fhaculty \Graph \Walk ;
8
10
11
+ /**
12
+ * Basic algorithms for working with the undirected or directed Graphs (digraphs) / Walks.
13
+ *
14
+ * @link http://en.wikipedia.org/wiki/Glossary_of_graph_theory#Direction
15
+ * @link http://en.wikipedia.org/wiki/Digraph_%28mathematics%29
16
+ */
9
17
class Directed extends Base
10
18
{
19
+ /**
20
+ * Graph/Walk to operate on
21
+ *
22
+ * @var Set
23
+ */
11
24
private $ set ;
12
25
26
+ /**
27
+ * instanciate new directed algorithm
28
+ *
29
+ * @param Set|Graph|Walk $graphOrWalk either the Graph or Walk to operate on (or the common base class Set)
30
+ */
13
31
public function __construct (Set $ graphOrWalk )
14
32
{
15
33
$ this ->set = $ graphOrWalk ;
You can’t perform that action at this time.
0 commit comments