class

CGL::GraphSourceIterator(V)

Inherits Iterator / Enumerable / Reference / Object

Constructors

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

Instance methods

has_next?
Source
next

Returns the next element in this iterator, or Iterator::Stop::INSTANCE if there are no more elements.

Source