class CGL::BFSIterator(V)

Overview

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

Defined in:

cgl/traversal/breadth_first_search.cr

Constructors

Instance methods inherited from class CGL::GraphSourceIterator(V)

has_next? has_next?, next next

Constructor methods inherited from class CGL::GraphSourceIterator(V)

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

Constructor Detail

def self.new(graph : AnyGraph(V), start : V, *, colors : Hash(V, Color) | Nil = nil) #

[View source]