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 Type
    Method
    Description
    void
    may visit the node twice (both sides)
    void
    May not be called.
    void
    will only be called once per node
  • Method Details

    • nodeSeen

      void nodeSeen(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(Object node)
      will only be called once per node
    • edgeVisited

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