examples/sample06.rb in ruby-graphviz-1.0.7 vs examples/sample06.rb in ruby-graphviz-1.0.8
- old
+ new
@@ -2,24 +2,24 @@
require "graphviz"
GraphViz::new( "G", :rankdir => "LR", :type => "graph" ) { |graph|
graph.cluster0 { |cluster|
cluster[:label] = "Back Office"
-
+
cluster.fatman.set { |n|
n.label = "FatMan"
n.shape = "rect"
}
cluster.grobil.set { |n|
n.label = "GroBil"
n.shape = "rect"
}
}
-
+
graph.cluster1 { |cluster|
cluster[:label] = "DMZ"
-
+
cluster.dupont.set { |n|
n.label = "Dupont"
n.shape = "rect"
}
cluster.dupond.set { |n|
@@ -28,16 +28,16 @@
}
}
graph.cluster2() { |cluster|
cluster[:label] = "Front Office"
-
+
cluster.door.set { |n|
n.label = "Door"
n.shape = "rect"
}
}
-
+
graph.cluster0.fatman << graph.cluster1.dupont
graph.cluster0.fatman << graph.cluster1.dupond
graph.cluster0.grobil << graph.cluster1.dupont
graph.cluster0.grobil << graph.cluster1.dupond
graph.cluster1.dupont << graph.cluster2.door
\ No newline at end of file