public class TopologicalSort
extends java.lang.Object
Constructor and Description |
---|
TopologicalSort() |
Modifier and Type | Method and Description |
---|---|
<VertexType,EdgeType extends Edge<VertexType>> |
topological_sort(Graph<VertexType,EdgeType> G) |
<VertexType,EdgeType extends Edge<VertexType>> |
topological_sort(Graph<VertexType,EdgeType> G,
java.util.Set<VertexType> roots)
TOPOLOGICAL-SORT(G) 1.
|
public <VertexType,EdgeType extends Edge<VertexType>> java.util.SortedSet<VertexType> topological_sort(Graph<VertexType,EdgeType> G, java.util.Set<VertexType> roots)