Class AbstractSuccinctDirectedGraph.CumulativeDegrees

java.lang.Object
org.jgrapht.sux4j.AbstractSuccinctDirectedGraph.CumulativeDegrees
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:
AbstractSuccinctDirectedGraph<E>

protected static final class AbstractSuccinctDirectedGraph.CumulativeDegrees
extends java.lang.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

    java.util.PrimitiveIterator.OfDouble, java.util.PrimitiveIterator.OfInt, java.util.PrimitiveIterator.OfLong
  • Constructor Summary

    Constructors 
    Modifier Constructor Description
    protected CumulativeDegrees​(int n, java.util.function.Function<java.lang.Integer,​java.lang.Integer> degreeOf)  
  • Method Summary

    Modifier and Type Method Description
    boolean hasNext()  
    long nextLong()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.Iterator

    remove

    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

      protected CumulativeDegrees​(int n, java.util.function.Function<java.lang.Integer,​java.lang.Integer> degreeOf)
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface java.util.Iterator<java.lang.Long>
    • nextLong

      public long nextLong()
      Specified by:
      nextLong in interface it.unimi.dsi.fastutil.longs.LongIterator
      Specified by:
      nextLong in interface java.util.PrimitiveIterator.OfLong