The consumer of the stream calls this method to get informed whether there are any more edges left in the stream.
The consumer of the stream calls this method to get informed whether there are
any more edges left in the stream. After having served this inquiry, the producer
will be asked by a call to next
to move to the next edge available.
true
if there is at least one more edge, false
if the stream has reached
its end.
The consumer of the stream calls this method to tell the provider to move to the next edge.
The consumer of the stream calls this method to tell the provider to move to the next edge. Moving the edge stream cursor to the next edge must assert that all subsequent calls to methods of the returned adapter will return data belonging to that next input edge.
Note that this semantic is different from that normally experienced in that
next
does not return the expected result (nodes, weight and label) but an adapter
to be queried first to get the expected results.
the adapter that the edge stream cursor has been moved to.
(Changed in version 2.8.0) collect
has changed. The previous behavior can be reproduced with toSeq
.
This abstract class is to be used to construct a concrete edge input stream that may be passed to the
from
factory method of aGraph
companion object.type of nodes to be passed to a
Graph
factory method from this stream.kind of the edges to be passed to a
Graph
factory method from this stream.type of edge labels or
Nothing
.kind of the edge factory to be invoked when creating edges from the raw edge data read from this stream.
kind of edge adapter that will be the return type of
next
.