N
- Value type that the graph node stores.E
- Value type that the graph edge stores.public final class FixedPointGraphTraversal<N,E>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
FixedPointGraphTraversal.EdgeCallback<Node,Edge>
Edge callback
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NON_HALTING_ERROR_MSG |
Modifier and Type | Method and Description |
---|---|
void |
computeFixedPoint(DiGraph<N,E> graph)
Compute a fixed point for the given graph.
|
void |
computeFixedPoint(DiGraph<N,E> graph,
N entry)
Compute a fixed point for the given graph, entering from the given node.
|
void |
computeFixedPoint(DiGraph<N,E> graph,
java.util.Set<N> entrySet)
Compute a fixed point for the given graph, entering from the given nodes.
|
static <NodeT,EdgeT> |
newReverseTraversal(FixedPointGraphTraversal.EdgeCallback<NodeT,EdgeT> callback)
Helper method for creating new traversals that traverse from child to parent.
|
static <NodeT,EdgeT> |
newTraversal(FixedPointGraphTraversal.EdgeCallback<NodeT,EdgeT> callback)
Helper method for creating new traversals that traverse from parent to child.
|
public static final java.lang.String NON_HALTING_ERROR_MSG
public static <NodeT,EdgeT> FixedPointGraphTraversal<NodeT,EdgeT> newTraversal(FixedPointGraphTraversal.EdgeCallback<NodeT,EdgeT> callback)
public static <NodeT,EdgeT> FixedPointGraphTraversal<NodeT,EdgeT> newReverseTraversal(FixedPointGraphTraversal.EdgeCallback<NodeT,EdgeT> callback)
public void computeFixedPoint(DiGraph<N,E> graph)
graph
- The graph to traverse.public void computeFixedPoint(DiGraph<N,E> graph, N entry)
graph
- The graph to traverse.entry
- The node to begin traversing from.Copyright © 2009-2020 Google. All Rights Reserved.