public class DepthFirstIterator<T extends Node> extends Object implements Iterator<T>
Modifier and Type | Field and Description |
---|---|
(package private) int[] |
depth |
(package private) boolean |
directed |
(package private) Graph |
graph |
(package private) Iterator<Edge>[] |
iterator |
(package private) int |
maxDepth |
(package private) Node |
next |
(package private) Node[] |
parent |
Constructor and Description |
---|
DepthFirstIterator(Node startNode) |
DepthFirstIterator(Node startNode,
boolean directed) |
Modifier and Type | Method and Description |
---|---|
int |
getDepthMax() |
int |
getDepthOf(Node node) |
protected void |
gotoNext() |
boolean |
hasNext() |
boolean |
isDirected() |
T |
next() |
void |
remove() |
boolean |
tabu(Node node) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public DepthFirstIterator(Node startNode, boolean directed)
public DepthFirstIterator(Node startNode)
protected void gotoNext()
public int getDepthOf(Node node)
public int getDepthMax()
public boolean isDirected()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses