Package com.jgalgo.alg
Interface Dfs.IntIter
-
- All Superinterfaces:
Dfs.Iter<Integer,Integer>
,IntIterator
,Iterator<Integer>
,PrimitiveIterator<Integer,IntConsumer>
,PrimitiveIterator.OfInt
- Enclosing interface:
- Dfs
public static interface Dfs.IntIter extends Dfs.Iter<Integer,Integer>, IntIterator
A DFS 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 IntList
edgePath()
Get the path from the source to the last vertex returned byDfs.Iter.next()
.default Integer
next()
Deprecated.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.Description copied from interface:Dfs.Iter
Advance the iterator and return a vertex that was not visited by the iterator yet.
-
edgePath
IntList edgePath()
Description copied from interface:Dfs.Iter
Get the path from the source to the last vertex returned byDfs.Iter.next()
.The behavior is undefined if
Dfs.Iter.next()
was not called yet.- Specified by:
edgePath
in interfaceDfs.Iter<Integer,Integer>
- Returns:
- list of edges forming a path from the source to the last vertex returned by
Dfs.Iter.next()
. The returned list should not be modified by the user.
-
-