class CGL::DFSIterator(V)

Overview

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

Defined in:

cgl/traversal/depth_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]