class Barista::Graph
- Barista::Graph
- Reference
- Object
Overview
A simple Directed Acyclic Graph
Defined in:
barista/graph.crConstructors
Instance Method Summary
-
#add(node : String)
Adds a task name to the Graph
- #add(node : Symbol)
-
#add_edge(from : String, to : String) : Nil
Connects 2 tasks in the Graph with an edge
- #add_edge(from : Symbol, to : Symbol)
-
#filter(names, result = names.dup)
Fetch a flat list of dependencies given an array of task names
- #nodes : Array(String)
- #vertices : Hash(String, Barista::Graph::Vertex)
Constructor Detail
def self.new(nodes : Array(String) = [] of String, vertices : Hash(String, Barista::Graph::Vertex) = {} of String => Vertex)
#
Instance Method Detail
def filter(names, result = names.dup)
#
Fetch a flat list of dependencies given an array of task names