Class TopologicalSorting
java.lang.Object
tools.refinery.interpreter.rete.itc.alg.misc.topsort.TopologicalSorting
- Since:
- 1.6
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> List
<T> compute
(IGraphDataSource<T> gds) Returns a topological ordering for the given graph data source.
-
Method Details
-
compute
Returns a topological ordering for the given graph data source. Output format: if there is an a -> b (transitive) reachability, then nodea
will come before nodeb
in the resulting list.- Parameters:
gds
- the graph data source- Returns:
- a topological ordering
-