public class GraphUtilities extends Object
Constructor and Description |
---|
GraphUtilities() |
Modifier and Type | Method and Description |
---|---|
static Enumeration<GraphNode> |
enumerateTopSort(Graph G)
Return an enumeration of the nodes, or a subset of the nodes, in an
acyclic graph in topological order.
|
static Enumeration<GraphNode> |
enumerateTopSort(Graph G,
Enumeration<GraphNode> ie) |
static Enumeration<GraphNode> |
enumerateTopSort(Graph G,
Enumeration<GraphNode> ie,
GraphEdgeFilter f) |
private static Enumeration<GraphNode> |
enumerateTopSortInternal(Graph G,
Enumeration<GraphNode> e) |
public GraphUtilities()
public static Enumeration<GraphNode> enumerateTopSort(Graph G)
Note: if G is cyclic, results are undefined
G
- the graph to enumeratepublic static Enumeration<GraphNode> enumerateTopSort(Graph G, Enumeration<GraphNode> ie)
public static Enumeration<GraphNode> enumerateTopSort(Graph G, Enumeration<GraphNode> ie, GraphEdgeFilter f)
private static Enumeration<GraphNode> enumerateTopSortInternal(Graph G, Enumeration<GraphNode> e)