Sha256: b4df0ea782ab04bf419748b7c471cfe033194ef91582aa8aa4e5d3f5ed3677a5
Contents?: true
Size: 577 Bytes
Versions: 11
Compression:
Stored size: 577 Bytes
Contents
#!/usr/bin/ruby # fdp example # see : http://www.graphviz.org/Gallery/undirected/fdpclust.html $:.unshift( "../lib" ); require "graphviz" g = GraphViz::new( "G", :type => "graph", :use => "fdp" ) { |graph| graph.e graph.clusterA { |cA| cA.a << cA.b cA.clusterC { |cC| cC._c( :label => "C" ) << cC._d( :label => "D" ) } } graph.clusterB { |cB| cB.d << cB.f } graph.clusterB.d << graph.clusterA.clusterC._d graph.e << graph.clusterB graph.clusterA.clusterC << graph.clusterB } g.output( :path => '/usr/local/bin/', :png => "#{$0}.png" )
Version data entries
11 entries across 11 versions & 2 rubygems