Method: Graph#subgraph

Defined in:
lib/graph.rb

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

Shortcut method to create a subgraph in the current graph. Use with the top-level digraph method in block form for a graph DSL.



289
290
291
# File 'lib/graph.rb', line 289

def subgraph name = nil, &block
  Graph.new name, self, &block
end