public class DepthFirstIterator<T extends Node>
extends java.lang.Object
implements java.util.Iterator<T>
Modifier and Type | Field and Description |
---|---|
(package private) int[] |
depth |
(package private) boolean |
directed |
(package private) Graph |
graph |
(package private) java.util.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) |
boolean directed
Graph graph
Node[] parent
java.util.Iterator<Edge>[] iterator
int[] depth
Node next
int maxDepth
public DepthFirstIterator(Node startNode, boolean directed)
public DepthFirstIterator(Node startNode)