Method: Graph#cluster

Defined in:
lib/graph.rb

#cluster(name, &block) ⇒ Object

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



371
372
373
# File 'lib/graph.rb', line 371

def cluster name, &block
  subgraph "cluster_#{name}", &block
end