- 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 Summary
Constructors Constructor Description SearchNodeData(E edge, int depth)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDepth()
Depth of node in search treeE
getEdge()
Edge to parent
-
-
-
Constructor Detail
-
SearchNodeData
public SearchNodeData(E edge, int depth)
Constructor- Parameters:
edge
- edge to parentdepth
- 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
-
-