public class AllEdgesIterator extends Object implements Iterator<com.tinkerpop.blueprints.Edge>
Iterator over all TitanEdges 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 com.tinkerpop.blueprints.Vertex> vertexIter)
Returns an iterator over all edges incident on the vertices returned by the given Iterable over vertices.
|
AllEdgesIterator(Set<? extends com.tinkerpop.blueprints.Vertex> vertices)
Returns an iterator over all edges contained in the subgraph spanned by the given vertices.
|
public AllEdgesIterator(Iterator<? extends com.tinkerpop.blueprints.Vertex> vertexIter)
vertexIter - Iterator over a set of vertices defining a connected component.public AllEdgesIterator(Set<? extends com.tinkerpop.blueprints.Vertex> vertices)
vertices - Set of verticespublic boolean hasNext()
public com.tinkerpop.blueprints.Edge next()
public void remove()
remove in interface Iterator<com.tinkerpop.blueprints.Edge>UnsupportedOperationException - if invokedCopyright © 2012–2014. All rights reserved.