| 1 |
/* |
| 2 |
|
| 3 |
:Tags: PGF, Preproc |
| 4 |
|
| 5 |
This example graph was contributed by Teresa Gomez-Diaz, and shows |
| 6 |
that the ``texlbl`` attriute can contain arbitrary LaTeX markup. |
| 7 |
|
| 8 |
Generated with:: |
| 9 |
|
| 10 |
$ dot2tex -tmath --autosize poltab.dot > poltab.tex |
| 11 |
|
| 12 |
|
| 13 |
*/ |
| 14 |
digraph G { |
| 15 |
rankdir=LR; |
| 16 |
node [shape=plaintext]; |
| 17 |
a_1 [texlbl="$\begin{array}{l} \fbox{1}\fbox{1} \end{array}$"]; |
| 18 |
a_2 [texlbl="$\frac{1}{q} \begin{array}{l} \fbox{2}\fbox{1} \end{array} + \begin{array}{l} \fbox{1}\fbox{2} \end{array}$"]; |
| 19 |
a_3 [texlbl="$(q+\frac{1}{q}) \begin{array}{l} \fbox{2}\fbox{2} \end{array}$"]; |
| 20 |
|
| 21 |
a_4 [texlbl="$\frac{1}{q} \frac{1}{z_1} \begin{array}{l} \fbox{1}\fbox{2} \end{array} + \frac{1}{z_2}\begin{array}{l} \fbox{2}\fbox{1} \end{array}$"]; |
| 22 |
|
| 23 |
{ rank=same; a_1; a_2; a_3;} |
| 24 |
{ nodesep =1; a_2; a_4;} |
| 25 |
|
| 26 |
a_1 -> a_2 [label="f_1" ]; |
| 27 |
a_2 -> a_3 [label="f_1" ]; |
| 28 |
a_1 -> a_4 [label="f_0" dir=back]; |
| 29 |
a_3 -> a_4 [label="f_0" ]; |
| 30 |
|
| 31 |
} |
| 32 |
|
| 33 |
|