Browse code

tests: Import Graphviz tests.

Jose Fonseca authored on 13/02/2016 23:53:31
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,46 @@
1
+digraph G {
2
+  rankdir=LR
3
+  node [shape=plaintext]
4
+  a [
5
+     label=<
6
+<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0">
7
+  <TR><TD ROWSPAN="3" BGCOLOR="yellow">class</TD></TR>
8
+  <TR><TD PORT="here" BGCOLOR="lightblue">qualifier</TD></TR>
9
+</TABLE>>
10
+  ]
11
+    b [shape=ellipse style=filled
12
+  label=<
13
+<TABLE BGCOLOR="bisque">
14
+  <TR><TD COLSPAN="3">elephant</TD> 
15
+      <TD ROWSPAN="2" BGCOLOR="chartreuse" 
16
+          VALIGN="bottom" ALIGN="right">two</TD> </TR>
17
+  <TR><TD COLSPAN="2" ROWSPAN="2">
18
+        <TABLE BGCOLOR="grey">
19
+          <TR> <TD>corn</TD> </TR> 
20
+          <TR> <TD BGCOLOR="yellow">c</TD> </TR> 
21
+          <TR> <TD>f</TD> </TR> 
22
+        </TABLE> </TD>
23
+      <TD BGCOLOR="white">penguin</TD> 
24
+  </TR> 
25
+  <TR> <TD COLSPAN="2" BORDER="4" ALIGN="right" PORT="there">4</TD> </TR>
26
+</TABLE>>
27
+  ]
28
+  c [ 
29
+  label=<long line 1<BR/>line 2<BR ALIGN="LEFT"/>line 3<BR ALIGN="RIGHT"/>>
30
+  ]
31
+
32
+  subgraph { rank=same b c }
33
+  a:here -> b:there [dir=both, arrowtail = diamond]
34
+  c -> b
35
+  d [shape=triangle]
36
+  d -> c [label=<
37
+<TABLE>
38
+  <TR><TD BGCOLOR="red" WIDTH="10"> </TD>
39
+      <TD>Edge labels<BR/>also</TD>
40
+      <TD BGCOLOR="blue" WIDTH="10"> </TD>
41
+  </TR>
42
+</TABLE>>
43
+  ]
44
+ 
45
+}
46
+