public final class GraphOrder extends Object
Modifier | Constructor and Description |
---|---|
private |
GraphOrder() |
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.
|
private static List<Node> |
createOrder(StructuredGraph graph) |
private static void |
visitForward(ArrayList<Node> nodes,
NodeBitMap visited,
Node node,
boolean floatingOnly) |
private GraphOrder()
public static boolean assertNonCyclicGraph(StructuredGraph graph)
graph
- the graph to be checked.AssertionError
- if a cycle was detected.private static List<Node> createOrder(StructuredGraph graph)
private static void visitForward(ArrayList<Node> nodes, NodeBitMap visited, Node node, boolean floatingOnly)
public static boolean assertSchedulableGraph(StructuredGraph graph)