Debian Codegraph @

texmf-dist/doc/latex/dot2texi/examples/d2tpstexamples.tex

raw
1 \documentclass[a4paper]{article}
2 \usepackage{pstricks}
3 \usepackage{pstricks-add}
4
5 \usepackage[pstricks]{dot2texi}
6
7 \begin{document}
8
9 \begin{dot2tex}[mathmode,autosize]
10 digraph G{
11 d2toptions="--nominsize";
12 a -> b;
13 a -> c;
14 b -> d;
15 d -> a;
16 }
17 \end{dot2tex}
18
19 \begin{dot2tex}[dot]
20 graph G {
21 node [shape=circle];
22 1 -- 2;
23 1 -- 5;
24 2 -- 5;
25 2 -- 4;
26 2 -- 3;
27 3 -- 4;
28 }
29 \end{dot2tex}
30
31 \begin{dot2tex}[circo]
32 digraph G {
33 graph [mindist=0.5];
34 node [texmode="math", fixedsize=true, shape=circle, width=0.4];
35 c -> n_1 [style="arrows=->"];
36 c -> n_2 [style="arrows=->>"];
37 c -> n_3 [style="arrows=-<"];
38 c -> n_4 [style="arrows=-*"];
39 c -> n_5 [style="arrows=-{]}"];
40 c -> n_6 [style="arrows=-o"];
41 c -> n_7 [style="arrows=-H"];
42 }
43 \end{dot2tex}
44 \end{document}