Class: Object

Inherits:
BasicObject
Defined in:
lib/graph.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#digraph(name = nil, &block) ⇒ Object

Convenience method to create a new graph. Used for DSL-style:

g = digraph do
  edge "a", "b", "c"
end


668
669
670
# File 'lib/graph.rb', line 668

def digraph name = nil, &block
  Graph.new name, &block
end