public interface VertexIterator
Modifier and Type | Method and Description |
---|---|
void |
addBreadth(Vertex vertex)
Add the vertex to the breadth set for traversal.
|
int |
decrementDepth()
Increment the current depth of traversal.
|
java.util.Map<Vertex,Vertex> |
getBreadthSet()
Return the set of vertices for the next breadth first traversal level.
|
int |
getDepth()
Return the current depth of traversal.
|
boolean |
getIgnorePrimitives()
Do not iterate on or over primitives.
|
int |
getMaxDepth()
Return the max depth of relationships to traverse, -1 means all.
|
int |
getMaxIterations()
Maximum number of vertices to iterator over, -1 means no maximum.
|
Path |
getPath()
Traversal path.
|
java.util.Map<Vertex,Vertex> |
getTraversed()
Return the set of already traversed vertices.
|
int |
incrementDepth()
Increment the current depth of traversal.
|
boolean |
isMaxDepth()
Return if the iterator is at the max depth.
|
boolean |
isMaxIterations()
Return if the iterator has iterated the max iterations.
|
boolean |
iterate(Vertex vertex)
Iterate on the vertex, and return true if children should be traversed.
|
void |
setBreadthSet(java.util.Map<Vertex,Vertex> breadthSet)
Set of vertices for the next breadth first traversal level.
|
void |
setDepth(int depth)
Set the current depth of traversal.
|
boolean getIgnorePrimitives()
int getMaxIterations()
int getMaxDepth()
boolean isMaxDepth()
boolean isMaxIterations()
int incrementDepth()
int decrementDepth()
int getDepth()
void setDepth(int depth)
Path getPath()
boolean iterate(Vertex vertex)
java.util.Map<Vertex,Vertex> getTraversed()
java.util.Map<Vertex,Vertex> getBreadthSet()
void setBreadthSet(java.util.Map<Vertex,Vertex> breadthSet)
void addBreadth(Vertex vertex)