Method: Gitgo::Helper::Format#graph

Defined in:
lib/gitgo/helper/format.rb

#graph(graph) ⇒ Object



170
171
172
173
174
175
# File 'lib/gitgo/helper/format.rb', line 170

def graph(graph)
  graph.each do |sha, slot, index, current_slots, transitions|
    next unless sha
    yield(sha, "#{slot}:#{index}:#{current_slots.join(',')}:#{transitions.join(',')}")
  end
end