Package org.apache.openjpa.lib.graph
Interface GraphVisitor
public interface GraphVisitor
A helper interface that allows third parties to be notified of graph events during graph traversals
- Since:
- 1.0.0
- Author:
- Steve Kim
-
Method Summary
Modifier and TypeMethodDescriptionvoid
edgeVisited
(Edge edge) may visit the node twice (both sides)void
May not be called.void
nodeVisited
(Object node) will only be called once per node
-
Method Details
-
nodeSeen
May not be called. The meaning of this method is dependent on the traversal being used. See each appropriate graph walker for details. -
nodeVisited
will only be called once per node -
edgeVisited
may visit the node twice (both sides)
-