Class: CSVPlusPlus::Runtime::Graph::DependencyGraph

Inherits:
Hash
  • Object
show all
Includes:
TSort
Defined in:
lib/csv_plus_plus/runtime/graph.rb

Overview

A dependency graph represented as a Hash which will be used by our topological_sort function

Instance Method Summary collapse

Instance Method Details

#tsort_each_child(node) ⇒ Object

sort each child



62
63
64
# File 'lib/csv_plus_plus/runtime/graph.rb', line 62

def tsort_each_child(node, &)
  fetch(node).each(&)
end