Interface FixedPointGraphTraversal.EdgeCallback<Node,Edge>
-
- All Known Implementing Classes:
GraphReachability
- Enclosing class:
- FixedPointGraphTraversal<N,E>
public static interface FixedPointGraphTraversal.EdgeCallback<Node,Edge>Edge callback
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleantraverseEdge(Node source, Edge e, Node destination)Update the state of the destination node when the given edge is traversed.
-
-
-
Method Detail
-
traverseEdge
boolean traverseEdge(Node source, Edge e, Node destination)
Update the state of the destination node when the given edge is traversed.Recall that depending on the direction of the traversal,
sourceanddestinationmay be swapped compared to the orientation of the edge in the graph. In either case, only thedestinationparameter may be mutated.- Parameters:
source- The start node.e- The edge.destination- The end node.- Returns:
- Whether the state of the destination node changed.
-
-