Package com.jgalgo.alg
Interface Dfs.Iter<V,E>
-
- Type Parameters:
V- the vertices typeE- the edges type
- All Superinterfaces:
Iterator<V>
- All Known Subinterfaces:
Dfs.IntIter
- Enclosing interface:
- Dfs
public static interface Dfs.Iter<V,E> extends Iterator<V>
A DFS iterator.- Author:
- Barak Ugav
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<E>edgePath()Get the path from the source to the last vertex returned bynext().booleanhasNext()Check whether there is more vertices to iterate over.Vnext()Advance the iterator and return a vertex that was not visited by the iterator yet.-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Method Detail
-
hasNext
boolean hasNext()
Check whether there is more vertices to iterate over.
-
next
V next()
Advance the iterator and return a vertex that was not visited by the iterator yet.
-
-