Skip to content

Instantly share code, notes, and snippets.

@melborne
Created February 26, 2014 01:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save melborne/9221580 to your computer and use it in GitHub Desktop.
Save melborne/9221580 to your computer and use it in GitHub Desktop.
# Gviz sample:
# Graphviz Example: Undirected Graph Clusters | Graphviz - Graph Visualization Software
# http://www.graphviz.org/content/fdpclust
require "gviz"
Graph(:G, :graph) do
global layout:'fdp'
node :e
subgraph(:clusterA) do
route :a => :b
subgraph(:clusterC) do
route :C => :D
end
end
subgraph(:clusterB) do
route :d => :f
end
route :d => :D
route :e => :clusterB
route :clusterC => :clusterB
save :sample
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment