Modifier and Type | Method and Description |
---|---|
void |
visit(T origin,
T destination,
U edgeValue,
int depth)
Called by the graph during traversal to handle each node in the graph.
|
void visit(T origin, T destination, U edgeValue, int depth)
origin
- The origin node value.destination
- The destination node value.edgeValue
- The edge value.depth
- The current depth in the graph.