Package org.apache.graphar.edges
Interface EdgesCollection
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description EdgeIter
begin()
The iterator pointing to the first edge.EdgeIter
end()
The iterator pointing to the past-the-end element.EdgeIter
findDst(long id, EdgeIter from)
Construct and return the iterator pointing to the first incoming edge of the vertex with specific id after the input iterator.EdgeIter
findSrc(long id, EdgeIter from)
Construct and return the iterator pointing to the first out-going edge of the vertex with specific id after the input iterator.default Iterator<Edge>
iterator()
Implement Iterable interface to support for-each loop.long
size()
Get the number of edges in the collection.-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
begin
EdgeIter begin()
The iterator pointing to the first edge.
-
end
EdgeIter end()
The iterator pointing to the past-the-end element.
-
findSrc
EdgeIter findSrc(long id, EdgeIter from)
Construct and return the iterator pointing to the first out-going edge of the vertex with specific id after the input iterator.- Parameters:
id
- The vertex id.from
- The input iterator.- Returns:
- The new constructed iterator.
-
findDst
EdgeIter findDst(long id, EdgeIter from)
Construct and return the iterator pointing to the first incoming edge of the vertex with specific id after the input iterator.- Parameters:
id
- The vertex id.from
- The input iterator.- Returns:
- The new constructed iterator.
-
size
long size()
Get the number of edges in the collection.
-
-