public abstract class AbstractVertexIterator extends java.lang.Object implements VertexIterator
| Constructor and Description |
|---|
AbstractVertexIterator() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBreadth(Vertex vertex)
Add the vertex to the breadth set for traversal.
|
int |
decrementDepth()
Decrement 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()
Return if should 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.
|
Path |
getPath()
Traversal path.
|
void |
getPath(Path path)
Set the 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.
|
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.
|
void |
setIgnorePrimitives(boolean ignorePrimitives)
Set if should iterate on or over primitives.
|
void |
setMaxIterations(int maxIterations)
Set the maximum number of vertices to iterator over.
|
void |
setMxDepth(int maxDepth)
Set the max depth of relationships to traverse, -1 means all.
|
void |
setTraversed(java.util.Map<Vertex,Vertex> traversed) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waititeratepublic boolean getIgnorePrimitives()
getIgnorePrimitives in interface VertexIteratorpublic int getMaxIterations()
getMaxIterations in interface VertexIteratorpublic boolean isMaxDepth()
isMaxDepth in interface VertexIteratorpublic boolean isMaxIterations()
isMaxIterations in interface VertexIteratorpublic int incrementDepth()
incrementDepth in interface VertexIteratorpublic int decrementDepth()
decrementDepth in interface VertexIteratorpublic int getDepth()
getDepth in interface VertexIteratorpublic int getMaxDepth()
getMaxDepth in interface VertexIteratorpublic void setIgnorePrimitives(boolean ignorePrimitives)
public void setMaxIterations(int maxIterations)
public void setDepth(int depth)
setDepth in interface VertexIteratorpublic void setMxDepth(int maxDepth)
public Path getPath()
getPath in interface VertexIteratorpublic void getPath(Path path)
public java.util.Map<Vertex,Vertex> getTraversed()
VertexIteratorgetTraversed in interface VertexIteratorpublic java.util.Map<Vertex,Vertex> getBreadthSet()
VertexIteratorgetBreadthSet in interface VertexIteratorpublic void setBreadthSet(java.util.Map<Vertex,Vertex> breadthSet)
VertexIteratorsetBreadthSet in interface VertexIteratorpublic void addBreadth(Vertex vertex)
addBreadth in interface VertexIterator