Module org.jgrapht.unimi.dsi
Package org.jgrapht.sux4j
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 java.util.PrimitiveIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong
-
Constructor Summary
ModifierConstructorDescriptionprotected
CumulativeDegrees
(int n, Function<Integer, Integer> degreeOf) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface it.unimi.dsi.fastutil.longs.LongIterator
forEachRemaining, forEachRemaining, next, skip
Methods inherited from interface java.util.PrimitiveIterator.OfLong
forEachRemaining
-
Constructor Details
-
CumulativeDegrees
-
-
Method Details
-
hasNext
public boolean hasNext() -
nextLong
public long nextLong()- Specified by:
nextLong
in interfaceit.unimi.dsi.fastutil.longs.LongIterator
- Specified by:
nextLong
in interfacePrimitiveIterator.OfLong
-