Package com.jgalgo.alg
Interface Bfs.IntIter
-
- All Superinterfaces:
Bfs.Iter<Integer,Integer>
,IntIterator
,Iterator<Integer>
,PrimitiveIterator<Integer,IntConsumer>
,PrimitiveIterator.OfInt
- Enclosing interface:
- Bfs
public static interface Bfs.IntIter extends Bfs.Iter<Integer,Integer>, IntIterator
A BFS iterator forIntGraph
.- Author:
- Barak Ugav
-
-
Nested Class Summary
-
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.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.Description copied from interface:Bfs.Iter
Get the edge that led to the last vertex returned byBfs.Iter.next()
.The behavior is undefined if
Bfs.Iter.next()
was not called yet.- Specified by:
lastEdge
in interfaceBfs.Iter<Integer,Integer>
- Returns:
- the edge that led to the last vertex returned by
Bfs.Iter.next()
-
-