public final class GraphOrder extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
assertNonCyclicGraph(StructuredGraph graph)
Quick (and imprecise) assertion that there are no (invalid) cycles in the given graph.
|
static boolean |
assertSchedulableGraph(StructuredGraph graph)
This method schedules the graph and makes sure that, for every node, all inputs are available
at the position where it is scheduled.
|
public static boolean assertNonCyclicGraph(StructuredGraph graph)
graph
- the graph to be checked.AssertionError
- if a cycle was detected.public static boolean assertSchedulableGraph(StructuredGraph graph)