Package com.jgalgo.alg.traversal
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.Int
Nested classes/interfaces inherited from interface java.util.PrimitiveIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong
-
Method Summary
Modifier and TypeMethodDescriptiondefault Integer
lastEdge()
Deprecated.int
Get the edge that led to the last vertex returned bynextInt()
.default Integer
next()
Deprecated.Please use the corresponding type-specific method instead.int
nextInt()
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, skip
Methods 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:
nextInt
in interfaceIntIterator
- Specified by:
nextInt
in 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
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.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:
lastEdge
in interfaceBfsIter<Integer,
Integer> - Returns:
- the edge that led to the last vertex returned by
BfsIter.next()
-
lastEdgeInt()
instead to avoid un/boxing.