Module org.jgrapht.unimi.dsi
Package org.jgrapht.sux4j
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,java.util.Iterator<java.lang.Long>,java.util.PrimitiveIterator<java.lang.Long,java.util.function.LongConsumer>,java.util.PrimitiveIterator.OfLong
- Enclosing class:
- AbstractSuccinctUndirectedGraph<E>
protected static final class AbstractSuccinctUndirectedGraph.CumulativeDegrees<E> extends java.lang.Object implements it.unimi.dsi.fastutil.longs.LongIteratorIterates over the cumulative degrees (starts with a zero). Depending on the value ofsorted, only edges whose adjacent vertex is greater than or equal to the base vertex (or vice versa) are included.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCumulativeDegrees(Graph<java.lang.Integer,E> graph, boolean sorted, java.util.function.Function<java.lang.Integer,java.lang.Iterable<E>> succ)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()longnextLong()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<E>
-
nextLong
public long nextLong()
- Specified by:
nextLongin interfaceit.unimi.dsi.fastutil.longs.LongIterator- Specified by:
nextLongin interfacejava.util.PrimitiveIterator.OfLong
-
-