public class TopologicalSorting
extends java.lang.Object
Constructor and Description |
---|
TopologicalSorting() |
Modifier and Type | Method and Description |
---|---|
static <T> java.util.List<T> |
compute(IGraphDataSource<T> gds)
Returns a topological ordering for the given graph data source.
|
public static <T> java.util.List<T> compute(IGraphDataSource<T> gds)
a
will come before node b
in the resulting list.gds
- the graph data source