|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jsort.graph.TopologicalSort
public class TopologicalSort
This class implements a topological sort of vertices of a directed acyclic graph (DAG), based on the direction of the edges connecting them.
| Constructor Summary | |
|---|---|
TopologicalSort()
|
|
| Method Summary | |
|---|---|
java.util.List |
sort(edu.uci.ics.jung.graph.DirectedGraph graph)
Equivalent as sort(graph,true). |
java.util.List |
sort(edu.uci.ics.jung.graph.DirectedGraph graph,
boolean useDirectionAsPrecedence)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TopologicalSort()
| Method Detail |
|---|
public java.util.List sort(edu.uci.ics.jung.graph.DirectedGraph graph)
graph -
public java.util.List sort(edu.uci.ics.jung.graph.DirectedGraph graph,
boolean useDirectionAsPrecedence)
graph - the graph to be sorteduseDirectionAsPrecedence - if the vertex that point to other must come first
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||