struct Omnibus::Graph

Defined in:

omnibus/graph.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(nodes : Array(Symbol) = [] of Symbol, verticies : Hash(Symbol, Omnibus::Vertex) = {} of Symbol => Vertex) #

[View source]

Instance Method Detail

def add(node : Symbol) : Vertex #

[View source]
def add_edge(from : Symbol, to : Symbol) #

[View source]
def nodes : Array(Symbol) #

[View source]
def verticies : Hash(Symbol, Omnibus::Vertex) #

[View source]