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 java.lang.Object
Data kept for discovered vertices.
  • Constructor Summary

    Constructors 
    Constructor Description
    SearchNodeData​(E edge, int depth)
    Constructor
  • Method Summary

    Modifier and Type Method Description
    int getDepth()
    Depth of node in search tree
    E getEdge()
    Edge to parent

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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