Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add gv scripts

  • Loading branch information...
commit 893c2dc2929b8235f70ec8c7d222884c9c38817d 1 parent 2e806dc
@glejeune authored
View
30 examples/dot/so-sample001.gv
@@ -0,0 +1,30 @@
+digraph G {
+ layout="neato"
+ // scale things down for example
+ size="5,5"
+ rankdir=TD
+ ranksep=1
+ nodesep=1
+
+ node [shape=box]
+
+ top[pos="5,10!", width=5, height=2]
+
+ left1[pos="3.5,7!", width=2, height=2]
+ left2[pos="3.5,4!", width=2, height=2]
+
+ right[pos="6.5,5.5!", width=2, height=5]
+
+ bottom[pos="5,1!", width=5, height=2]
+
+
+ top->left1
+ top->right
+
+ left1->left2
+ left1->right
+ left2->right
+
+ left2->bottom
+ right->bottom
+}
View
33 examples/dot/so-sample002.gv
@@ -0,0 +1,33 @@
+
+//{:category1 =>
+// {:subcategory1 =>
+// [
+// {:article => "some article", :date => "2010-04-04"},
+// ...
+// ],
+// :subc2 => [...]
+// },
+// :category2 => {...},
+// ...
+//}
+
+graph G {
+ rankdir=LR
+ category1
+
+ subgraph clusterC {
+ node[shape="box"]
+ subcategory1
+ subc2
+
+ subgraph clusterS {
+ article -- "somme article"
+ date -- "2010-04-04"
+ }
+
+ subcategory1 -- clusterS
+ subc2 -- "..."
+ }
+
+ category1 -- clusterC
+}
View
45 examples/dot/so-sample003.gv
@@ -0,0 +1,45 @@
+
+//{:category1 =>
+// {:subcategory1 =>
+// [
+// {:article => "some article", :date => "2010-04-04"},
+// ...
+// ],
+// :subc2 => [...]
+// },
+// :category2 => {...},
+// ...
+//}
+
+graph G {
+ layout="fdp"
+
+ category1[label=":category1", shape="box"]
+
+ subgraph cluster_category1 {
+ subcategory1[label=":subcategory1", shape="box"]
+ subc2[label=":subc2", shape="box"]
+
+ subgraph cluster_subcategory1 {
+ subgraph cluster_subcategory1_Array0 {
+ article0[label=":article", shape="box"]
+ date0[label=":date", shape="box"]
+
+ article0 -- "somme article"
+ date0 -- "2010-04-04"
+ }
+ subgraph cluster_subcategory1_Array1 {
+ article1[label=":article", shape="box"]
+ date1[label=":date", shape="box"]
+
+ article1 -- "an other article"
+ date1 -- "2010-09-09"
+ }
+ }
+
+ subcategory1 -- cluster_subcategory1
+ subc2 -- "..."
+ }
+
+ category1 -- cluster_category1
+}
Please sign in to comment.
Something went wrong with that request. Please try again.