public class AllEdgesIterator extends Object implements Iterator<org.apache.tinkerpop.gremlin.structure.Edge>
Iterator
over all JanusGraphEdge
s connecting a provided set of vertices.
Given a set of vertices, one may be interested in all edges that are contained in the subgraph spanned
by those vertices. This iterator will return these edges.Constructor and Description |
---|
AllEdgesIterator(Iterator<? extends org.apache.tinkerpop.gremlin.structure.Vertex> vertexIter)
Returns an iterator over all edges incident on the vertices returned by the given Iterable over vertices.
|
AllEdgesIterator(Set<? extends org.apache.tinkerpop.gremlin.structure.Vertex> vertices)
Returns an iterator over all edges contained in the subgraph spanned by the given vertices.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
org.apache.tinkerpop.gremlin.structure.Edge |
next() |
void |
remove()
Removing edges is not supported!
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public AllEdgesIterator(Iterator<? extends org.apache.tinkerpop.gremlin.structure.Vertex> vertexIter)
vertexIter
- Iterator over a set of vertices defining a connected component.public AllEdgesIterator(Set<? extends org.apache.tinkerpop.gremlin.structure.Vertex> vertices)
vertices
- Set of verticespublic boolean hasNext()
public org.apache.tinkerpop.gremlin.structure.Edge next()
public void remove()
remove
in interface Iterator<org.apache.tinkerpop.gremlin.structure.Edge>
UnsupportedOperationException
- if invokedCopyright © 2012–2017. All rights reserved.