class

Barista::Graph

Inherits Reference < Object

A simple Directed Acyclic Graph

Constructors

new(nodes : Array(String) = [] of String, vertices : Hash(String, Barista::Graph::Vertex) = {} of String => Vertex)
Source

Instance methods

add(node : String)

Adds a task name to the Graph

Source
add(node : Symbol)
Source
add_edge(from : String, to : String) : Nil

Connects 2 tasks in the Graph with an edge

Source
add_edge(from : Symbol, to : Symbol)
Source
filter(names, result = names.dup)

Fetch a flat list of dependencies given an array of task names

Source
nodes
Source
vertices
Source

Nested types