public class TopologicalSortDFS extends java.lang.Object implements Algorithm
Constructor and Description |
---|
TopologicalSortDFS() |
Modifier and Type | Method and Description |
---|---|
void |
compute()
Run the algorithm.
|
java.lang.String |
defaultResult() |
java.util.List<org.graphstream.graph.Node> |
getSortedNodes()
gets sorted list of the given graph
|
void |
init(org.graphstream.graph.Graph theGraph)
Initialization of the algorithm.
|
public void init(org.graphstream.graph.Graph theGraph)
Algorithm
Algorithm.compute()
method to initialize or reset the algorithm according
to the new given graph.public void compute()
Algorithm
Algorithm.init(Graph)
method has to be called
before computing.compute
in interface Algorithm
Algorithm.init(Graph)
public java.util.List<org.graphstream.graph.Node> getSortedNodes()
public java.lang.String defaultResult()