Class AbstractSuccinctUndirectedGraph.CumulativeDegrees<E>
java.lang.Object
org.jgrapht.sux4j.AbstractSuccinctUndirectedGraph.CumulativeDegrees<E>
- Type Parameters:
E- the graph edge type
- All Implemented Interfaces:
it.unimi.dsi.fastutil.longs.LongIterator, Iterator<Long>, PrimitiveIterator<Long, LongConsumer>, PrimitiveIterator.OfLong
- Enclosing class:
AbstractSuccinctUndirectedGraph<E>
protected static final class AbstractSuccinctUndirectedGraph.CumulativeDegrees<E>
extends Object
implements it.unimi.dsi.fastutil.longs.LongIterator
Iterates over the cumulative degrees (starts with a zero). Depending on the value of
sorted, only edges whose adjacent vertex is greater than or equal to the base vertex
(or vice versa) are included.-
Nested Class Summary
Nested classes/interfaces inherited from interface PrimitiveIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong -
Field Summary
Fields -
Constructor Summary
Constructors -
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
-
n
private final int n -
x
private int x -
cumul
private long cumul -
succ
-
sorted
private final boolean sorted -
graph
-
-
Constructor Details
-
CumulativeDegrees
-
-
Method Details
-
hasNext
-
nextLong
public long nextLong()- Specified by:
nextLongin interfaceit.unimi.dsi.fastutil.longs.LongIterator- Specified by:
nextLongin interfacePrimitiveIterator.OfLong
-