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


623
624
625
# File 'lib/graph.rb', line 623

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