lib/dot: add sav for do examples
authorAlexandre Terrasa <alexandre@moz-code.org>
Fri, 9 Jun 2017 17:22:38 +0000 (13:22 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Fri, 9 Jun 2017 17:22:38 +0000 (13:22 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

tests/sav/clusters.res [new file with mode: 0644]
tests/sav/hello.res [new file with mode: 0644]
tests/sav/undirected_clusters.res [new file with mode: 0644]

diff --git a/tests/sav/clusters.res b/tests/sav/clusters.res
new file mode 100644 (file)
index 0000000..1a47c6a
--- /dev/null
@@ -0,0 +1,36 @@
+digraph "G" {
+subgraph "cluster_0" {
+label="process #1";
+style="filled";
+color="lightgrey";
+node[style="filled",color="white",];
+"a0" ;
+"a1" ;
+"a2" ;
+"a3" ;
+"a0" -> "a1" ;
+"a1" -> "a2" ;
+"a2" -> "a3" ;
+};
+subgraph "cluster_1" {
+label="process #2";
+color="blue";
+node[style="filled",];
+"b0" ;
+"b1" ;
+"b2" ;
+"b3" ;
+"b0" -> "b1" ;
+"b1" -> "b2" ;
+"b2" -> "b3" ;
+};
+"start" [shape="Mdiamond",];
+"end" [shape="Msquare",];
+"start" -> "a0" ;
+"start" -> "b0" ;
+"a1" -> "b3" ;
+"b2" -> "a3" ;
+"a3" -> "a0" ;
+"a3" -> "end" ;
+"b3" -> "end" ;
+}
diff --git a/tests/sav/hello.res b/tests/sav/hello.res
new file mode 100644 (file)
index 0000000..8441112
--- /dev/null
@@ -0,0 +1,5 @@
+digraph "G" {
+"hello" ;
+"world" ;
+"hello" -> "world" ;
+}
diff --git a/tests/sav/undirected_clusters.res b/tests/sav/undirected_clusters.res
new file mode 100644 (file)
index 0000000..a986173
--- /dev/null
@@ -0,0 +1,13 @@
+graph "G" {
+subgraph "clusterA" {
+"a" -- "b" ;
+subgraph "clusterB" {
+"c" -- "d" ;
+};
+};
+subgraph "clusterC" {
+"e" -- "g" ;
+};
+"e" -- "d" ;
+"f" -- "g" ;
+}