Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/graph.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#digraph(name = nil, &block) ⇒ Object
Convenience method to create a new graph.
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
652 653 654 |
# File 'lib/graph.rb', line 652 def digraph name = nil, &block Graph.new name, &block end |