Class: CSVPlusPlus::Graph::DependencyGraph
- Inherits:
-
Hash
- Object
- Hash
- CSVPlusPlus::Graph::DependencyGraph
- Includes:
- TSort
- Defined in:
- lib/csv_plus_plus/graph.rb
Overview
A dependency graph represented as a Hash which will be used by our topological_sort function
Instance Method Summary collapse
-
#tsort_each_child(node) ⇒ Object
sort each child.
Instance Method Details
#tsort_each_child(node) ⇒ Object
sort each child
57 58 59 |
# File 'lib/csv_plus_plus/graph.rb', line 57 def tsort_each_child(node, &) fetch(node).each(&) end |