Debian Codegraph @

examples/graphofgraphs.dot

raw
1 /*
2
3 :Title: Graph of graphs
4 :Tags: PGF
5
6 This example shows that node content is not limited to text and math.
7 You can for instance insert graphics and create this weird graph of graphs.
8 Download the PDF and zoom in to see the details.
9
10 Generated with::
11
12 $ neato -Txdot graphofgraphs.dot | dot2tex --crop -fpgf > graphofgraphs.tex
13
14 */
15 digraph G {
16 graph [mindist=0.5];
17 node [shape=plaintext, height=0.5];
18 edge [style="black!50, thin,-to"];
19 a_1 [texlbl="\raisebox{-.4\height}{\includegraphics[height=30bp]{balls.pdf}}"];
20 a_2 [texlbl="\raisebox{-.4\height}{\includegraphics[height=30bp]{pgfsnakes.pdf}}"];
21 a_3 [texlbl="\raisebox{-.4\height}{\includegraphics[height=30bp]{pgfarrows.pdf}}"];
22 a_4 [texlbl="\raisebox{-.4\height}{\includegraphics[height=30bp]{poltab.pdf}}"];
23 a_5 [texlbl="\raisebox{-.4\height}{\includegraphics[height=30bp]{subgraphs.pdf}}"];
24 a_1-> a_2 -> a_3 -> a_4 -> a_5 -> a_1;
25 a_2 -> a_5;
26 }