public static interface FixedPointGraphTraversal.EdgeCallback<Node,Edge>
Modifier and Type | Method and Description |
---|---|
boolean |
traverseEdge(Node source,
Edge e,
Node destination)
Update the state of the destination node when the given edge is traversed.
|
boolean traverseEdge(Node source, Edge e, Node destination)
Recall that depending on the direction of the traversal, source
and destination
may be swapped compared to the orientation of the edge in the graph. In either
case, only the destination
parameter may be mutated.
source
- The start node.e
- The edge.destination
- The end node.Copyright © 2009-2020 Google. All Rights Reserved.