Created
February 26, 2014 01:22
-
-
Save melborne/9221580 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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