Interface RandomWalkIter.Int
- All Superinterfaces:
IntIterator,Iterator<Integer>,PrimitiveIterator<Integer,,IntConsumer> PrimitiveIterator.OfInt,RandomizedAlgorithm,RandomWalkIter<Integer,Integer>
- Enclosing interface:
RandomWalkIter<V,E>
A random walk iterator for
IntGraph.- Author:
- Barak Ugav
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.PrimitiveIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLongNested classes/interfaces inherited from interface com.jgalgo.alg.traversal.RandomWalkIter
RandomWalkIter.Int -
Method Summary
Modifier and TypeMethodDescriptiondefault IntegerlastEdge()Deprecated.intGet 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, skipMethods inherited from interface java.util.PrimitiveIterator.OfInt
forEachRemainingMethods inherited from interface com.jgalgo.alg.common.RandomizedAlgorithm
setSeedMethods inherited from interface com.jgalgo.alg.traversal.RandomWalkIter
hasNext
-
Method Details
-
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.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
-
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()
-
lastEdgeInt()instead to avoid un/boxing.