Package com.jgalgo.alg.traversal
Interface BfsIter.Int
-
- All Superinterfaces:
BfsIter<Integer,Integer>
,IntIterator
,Iterator<Integer>
,PrimitiveIterator<Integer,IntConsumer>
,PrimitiveIterator.OfInt
public static interface BfsIter.Int extends BfsIter<Integer,Integer>, IntIterator
A BFS iterator forIntGraph
.- 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
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default Integer
lastEdge()
Deprecated.Please uselastEdgeInt()
instead to avoid un/boxing.int
lastEdgeInt()
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 Detail
-
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 default Integer 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 default Integer 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()
-
-