Class: Graph

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

Instance Method Summary collapse

Instance Method Details

#tsort_each_child(node, &block) ⇒ Object



8
9
10
# File 'lib/rubrowser/graph.rb', line 8

def tsort_each_child(node, &block)
  fetch(node) { [] }.each(&block)
end