Package com.jgalgo.alg.traversal
Interface DfsIter.Int
- All Superinterfaces:
DfsIter<Integer,
,Integer> IntIterator
,Iterator<Integer>
,PrimitiveIterator<Integer,
,IntConsumer> PrimitiveIterator.OfInt
A DFS iterator for
IntGraph
.- Author:
- Barak Ugav
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.jgalgo.alg.traversal.DfsIter
DfsIter.Int
Nested classes/interfaces inherited from interface java.util.PrimitiveIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong
-
Method Summary
Modifier and TypeMethodDescriptionedgePath()
Get the path from the source to the last vertex returned byDfsIter.next()
.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. -
edgePath
IntList edgePath()Description copied from interface:DfsIter
Get the path from the source to the last vertex returned byDfsIter.next()
.The behavior is undefined if
DfsIter.next()
was not called yet.- Specified by:
edgePath
in interfaceDfsIter<Integer,
Integer> - Returns:
- list of edges forming a path from the source to the last vertex returned by
DfsIter.next()
. The returned list should not be modified
-