This class represents a depth-first ordering of a graph, as it appears in the Aho, Sehti, Ullman book on compilers. It extends the concept of graph ordering distinguishing between Advancing, Retreating and Cross edges.
- Type parameters:
- N
the type of the nodes of the graph
- Companion:
- object
Type members
Inherited classlikes
Value members
Abstract methods
Inherited methods
It returns whether n
is an head element.
It returns whether n
is an head element.
- Inherited from:
- GraphOrdering
Defines the prefix of this object's toString representation.
Defines the prefix of this object's toString representation.
- Inherited from:
- GraphOrdering
- Inherited from:
- Comparator
- Inherited from:
- Comparator
Returns the elements which are part of the ordering in the correct order.
Returns the elements which are part of the ordering in the correct order.
- Inherited from:
- GraphOrdering
Converts a GraphOrdering into a string composed by the sequence of its elements in the correct order. Head elements are marked with parenthesis.
Converts a GraphOrdering into a string composed by the sequence of its elements in the correct order. Head elements are marked with parenthesis.
- Definition Classes
- GraphOrdering -> Any
- Inherited from:
- GraphOrdering