Sha256: 11d23621cdc30a82aac8c20cf571d41f1caa2b7a610761b4eedebfbbb4e4f507

Contents?: true

Size: 622 Bytes

Versions: 19

Compression:

Stored size: 622 Bytes

Contents

#!/usr/bin/ruby -w

require "graph"

digraph do
  # composite styles
  leaf_node = white + filled

  subgraph "cluster_0" do
    label "process #1"
    graph_attribs << filled << lightgray
    node_attribs  << leaf_node

    edge "a0", "a1", "a2", "a3"
  end

  subgraph "cluster_1" do
    label "process #2"
    graph_attribs << blue
    node_attribs  << filled

    edge "b0", "b1", "b2", "b3"
  end

  edge "start", "a0"
  edge "start", "b0"
  edge "a1", "b3"
  edge "b2", "a3"
  edge "a3", "a0"
  edge "a3", "end"
  edge "b3", "end"

  mdiamond << node("start")
  msquare  << node("end")

  save "cluster", "png"
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
graph-2.11.1 gallery/cluster.rb
graph-2.11.0 gallery/cluster.rb
graph-2.10.0 gallery/cluster.rb
graph-2.9.1 gallery/cluster.rb
graph-2.9.0 gallery/cluster.rb
graph-2.8.2 gallery/cluster.rb
graph-2.8.1 gallery/cluster.rb
graph-2.8.0 gallery/cluster.rb
graph-2.7.1 gallery/cluster.rb
graph-2.7.0 gallery/cluster.rb
graph-2.6.0 gallery/cluster.rb
graph-2.5.3 gallery/cluster.rb
graph-2.5.2 gallery/cluster.rb
graph-2.5.1 gallery/cluster.rb
graph-2.5.0 gallery/cluster.rb
graph-2.4.1 gallery/cluster.rb
graph-2.4.0 gallery/cluster.rb
graph-2.3.1 gallery/cluster.rb
graph-2.3.0 gallery/cluster.rb