V
- vertex typepublic static class BFS.Node<V> extends GraphTraversal.Node<V>
Modifier | Constructor and Description |
---|---|
protected |
Node(V vertex)
Constructs a node for a spanning tree.
|
Modifier and Type | Method and Description |
---|---|
int |
depth()
Gets the depth of this node.
|
protected void |
setParent(BFS.Node<V> parent) |
String |
toString() |
compareTo, parent, setParent, setVisitTime, vertex, visitTime
protected Node(V vertex)
vertex
- the nodeCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.