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 |
Constructor and Description |
---|
FixedPointGraphTraversal(FixedPointGraphTraversal.EdgeCallback<N,E> callback)
Create a new traversal.
|
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 <NODE,EDGE> |
newTraversal(FixedPointGraphTraversal.EdgeCallback<NODE,EDGE> callback)
Helper method for creating new traversals.
|
public static final java.lang.String NON_HALTING_ERROR_MSG
public FixedPointGraphTraversal(FixedPointGraphTraversal.EdgeCallback<N,E> callback)
callback
- A callback for updating the state of the graph each
time an edge is traversed.public static <NODE,EDGE> FixedPointGraphTraversal<NODE,EDGE> newTraversal(FixedPointGraphTraversal.EdgeCallback<NODE,EDGE> 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.