Class AbstractSuccinctDirectedGraph.CumulativeDegrees
java.lang.Object
org.jgrapht.sux4j.AbstractSuccinctDirectedGraph.CumulativeDegrees
- All Implemented Interfaces:
it.unimi.dsi.fastutil.longs.LongIterator, Iterator<Long>, PrimitiveIterator<Long, LongConsumer>, PrimitiveIterator.OfLong
- Enclosing class:
AbstractSuccinctDirectedGraph<E>
protected static final class AbstractSuccinctDirectedGraph.CumulativeDegrees
extends Object
implements it.unimi.dsi.fastutil.longs.LongIterator
Iterates over the cumulative degrees (starts with a zero).
-
Nested Class Summary
Nested classes/interfaces inherited from interface PrimitiveIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCumulativeDegrees(int n, Function<Integer, Integer> degreeOf) -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.longs.LongIterator
forEachRemaining, forEachRemaining, next, skipMethods inherited from interface PrimitiveIterator.OfLong
forEachRemaining
-
Field Details
-
degreeOf
-
n
private final int n -
i
private int i -
cumul
private long cumul
-
-
Constructor Details
-
CumulativeDegrees
-
-
Method Details
-
hasNext
-
nextLong
public long nextLong()- Specified by:
nextLongin interfaceit.unimi.dsi.fastutil.longs.LongIterator- Specified by:
nextLongin interfacePrimitiveIterator.OfLong
-