Class BreadthFirstIterator.SearchNodeData<E>

java.lang.Object
org.jgrapht.traverse.BreadthFirstIterator.SearchNodeData<E>
Type Parameters:
E - the graph edge type
Enclosing class:
BreadthFirstIterator<V,E>

protected static class BreadthFirstIterator.SearchNodeData<E> extends Object
Data kept for discovered vertices.
  • Constructor Details

    • SearchNodeData

      public SearchNodeData(E edge, int depth)
      Constructor
      Parameters:
      edge - edge to parent
      depth - depth of node in search tree
  • Method Details

    • getEdge

      public E getEdge()
      Edge to parent
      Returns:
      the edge to the parent
    • getDepth

      public int getDepth()
      Depth of node in search tree
      Returns:
      the depth of the node in the search tree