Graph
class Graph (View source)
Directed acyclic graph manipulation.
Properties
| protected | $graph | Holds the directed acyclic graph. |
Methods
__construct($graph)
Instantiates the depth first search object.
The
searchAndSort()
Performs a depth-first search and sort on the directed acyclic graph.
depthFirstSearch($state, $start, $component = NULL)
Performs a depth-first search on a graph.
Details
__construct($graph)
Instantiates the depth first search object.
The
searchAndSort()
Performs a depth-first search and sort on the directed acyclic graph.
protected
depthFirstSearch($state, $start, $component = NULL)
Performs a depth-first search on a graph.