Class 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 Detail

      • SearchNodeData

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

      • 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