Package com.jgalgo.alg
Interface RandomWalkIter.Int
-
- All Superinterfaces:
IntIterator,Iterator<Integer>,PrimitiveIterator<Integer,IntConsumer>,PrimitiveIterator.OfInt,RandomizedAlgorithm,RandomWalkIter<Integer,Integer>
- Enclosing interface:
- RandomWalkIter<V,E>
public static interface RandomWalkIter.Int extends RandomWalkIter<Integer,Integer>, IntIterator
A random walk iterator forIntGraph.- Author:
- Barak Ugav
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface java.util.PrimitiveIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong
-
Nested classes/interfaces inherited from interface com.jgalgo.alg.RandomWalkIter
RandomWalkIter.Int
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default IntegerlastEdge()Deprecated.Please uselastEdgeInt()instead to avoid un/boxing.intlastEdgeInt()Get the edge that led to the last vertex returned bynextInt().default Integernext()Deprecated.Please use the corresponding type-specific method instead.intnextInt()Advance the iterator from the current vertex along one of its out edges and return the vertex reached.-
Methods inherited from interface it.unimi.dsi.fastutil.ints.IntIterator
forEachRemaining, forEachRemaining, skip
-
Methods inherited from interface java.util.PrimitiveIterator.OfInt
forEachRemaining
-
Methods inherited from interface com.jgalgo.alg.RandomizedAlgorithm
setSeed
-
Methods inherited from interface com.jgalgo.alg.RandomWalkIter
hasNext
-
-
-
-
Method Detail
-
nextInt
int nextInt()
Advance the iterator from the current vertex along one of its out edges and return the vertex reached.- Specified by:
nextIntin interfaceIntIterator- Specified by:
nextIntin interfacePrimitiveIterator.OfInt
-
next
@Deprecated default Integer next()
Deprecated.Please use the corresponding type-specific method instead.Advance the iterator from the current vertex along one of its out edges and return the vertex reached.- Specified by:
nextin interfaceIntIterator- Specified by:
nextin interfaceIterator<Integer>- Specified by:
nextin interfacePrimitiveIterator.OfInt- Specified by:
nextin interfaceRandomWalkIter<Integer,Integer>
-
lastEdgeInt
int lastEdgeInt()
Get the edge that led to the last vertex returned bynextInt().The behavior is undefined if
nextInt()was not called yet.- Returns:
- the edge that led to the last vertex returned by
nextInt()
-
lastEdge
@Deprecated default Integer lastEdge()
Deprecated.Please uselastEdgeInt()instead to avoid un/boxing.Get the edge that led to the last vertex returned byRandomWalkIter.next().The behavior is undefined if
RandomWalkIter.next()was not called yet.- Specified by:
lastEdgein interfaceRandomWalkIter<Integer,Integer>- Returns:
- the edge that led to the last vertex returned by
RandomWalkIter.next()
-
-