class

CGL::BFSIterator(V)

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

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

Constructors

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