class

CGL::DFSIterator(V)

Inherits CGL::GraphSourceIterator / Iterator / Enumerable / Reference / Object

A DFSIterator can be used to traverse a graph from a given vertex V in a Depth-first search fashion.

Constructors

new(graph : AnyGraph(V), start : V, *, colors : Hash(V, Color) | Nil = nil)
Source