Interface BfsIter.Int
- All Superinterfaces:
BfsIter<Integer,,Integer> IntIterator,Iterator<Integer>,PrimitiveIterator<Integer,,IntConsumer> PrimitiveIterator.OfInt
A BFS iterator for
IntGraph.- Author:
- Barak Ugav
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.jgalgo.alg.traversal.BfsIter
BfsIter.IntNested classes/interfaces inherited from interface java.util.PrimitiveIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong -
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 and return a vertex that was not visited by the iterator yet.Methods inherited from interface it.unimi.dsi.fastutil.ints.IntIterator
forEachRemaining, forEachRemaining, skipMethods inherited from interface java.util.PrimitiveIterator.OfInt
forEachRemaining
-
Method Details
-
nextInt
int nextInt()Advance the iterator and return a vertex that was not visited by the iterator yet.- Specified by:
nextIntin interfaceIntIterator- Specified by:
nextIntin interfacePrimitiveIterator.OfInt
-
next
Deprecated.Please use the corresponding type-specific method instead.Advance the iterator and return a vertex that was not visited by the iterator yet. -
lastEdgeInt
-
lastEdge
Deprecated.Please uselastEdgeInt()instead to avoid un/boxing.Get the edge that led to the last vertex returned byBfsIter.next().The behavior is undefined if
BfsIter.next()was not called yet.- Specified by:
lastEdgein interfaceBfsIter<Integer,Integer> - Returns:
- the edge that led to the last vertex returned by
BfsIter.next()
-
lastEdgeInt()instead to avoid un/boxing.