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)
AlgorithmAlgorithm.compute() method to initialize or reset the algorithm according
to the new given graph.public void compute()
AlgorithmAlgorithm.init(Graph) method has to be called
before computing.compute in interface AlgorithmAlgorithm.init(Graph)public java.util.List<org.graphstream.graph.Node> getSortedNodes()
public java.lang.String defaultResult()