Debian Codegraph @

examples/tikzshapes.dot

raw
1 /*
2
3 :Title: TikZ node shapes
4 :Tags: TikZ, tikzedgelabels
5
6 This example shows some of special `TikZ node shapes`_ that are available when using
7 the ``tikz`` output format.
8
9 Generated with::
10
11 $ dot2tex -ftikz --prog circo -s tikzshapes.dot > tikzshapes.tex
12
13
14 .. _TikZ node shapes: http://www.fauskes.net/pgftikzexamples/node-shapes/
15
16 */
17 graph G {
18 graph [mindist=0.5];
19 node [style="fill=green!20",texmode=math];
20 edge [lblstyle="above,sloped"];
21 d2ttikzedgelabels=true;
22 c [style=circle];
23 n_1 [lblstyle=diamond];
24 n_2 [lblstyle=star];
25 n_3 [lblstyle="forbidden sign"];
26 n_4 [lblstyle="circle split", texlbl="$n$ \nodepart{lower} $4$"];
27 n_5 [lblstyle="cross out"];
28 n_6 [lblstyle="strike out"];
29 n_7 [lblstyle="regular polygon,regular polygon sides=7"];
30 c -- n_1 [label="diamond"];
31 c -- n_2 [label="star"];
32 c -- n_3 [label="forbidden sign"];
33 c -- n_4 [label="circle split"];
34 c -- n_5 [label="cross out"];
35 c -- n_6 [label="strike out"];
36 c -- n_7 [label="regular polygon"];
37 c [style="fill=red!80"];
38 }