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 Detail

      • nodeSeen

        void nodeSeen​(java.lang.Object node)
        May not be called. The meaning of this method is dependent on the traversal being used. See each appropriate graph walker for details.
      • nodeVisited

        void nodeVisited​(java.lang.Object node)
        will only be called once per node
      • edgeVisited

        void edgeVisited​(Edge edge)
        may visit the node twice (both sides)