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