public abstract class NodeIterator extends java.lang.Object implements LongIterator
LongIteratorand is used to scan a graph, that is, to read its nodes and their successor lists sequentially. The
LongIterator.nextLong()method returns the node that will be scanned. After a call to this method, calling
successorBigArray()will return the list of successors.
|Constructor and Description|
|Modifier and Type||Method and Description|
Returns the outdegree of the current node.
Returns a reference to an array containing the successors of the current node.
Returns a lazy iterator over the successors of the current node.
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, next, nextLong, skip
public abstract long outdegree()
public LazyLongIterator successors()
This implementation just wraps the array returned by
public long successorBigArray()
The returned array may contain more entries than the outdegree of the current node. However, only those with indices from 0 (inclusive) to the outdegree of the current node (exclusive) contain valid data.
This implementation just unwrap the iterator returned by