Modifier and Type | Method and Description |
---|---|
boolean |
consume(T origin,
T destination,
U edgeValue,
int depth,
boolean isLast)
Called by the graph during traversal to handle each node in the graph.
|
boolean consume(T origin, T destination, U edgeValue, int depth, boolean isLast)
origin
- The origin node value.destination
- The destination node value.edgeValue
- The edge value.depth
- The current depth in the graph.isLast
- If this is the last node at this depth.