Debian Codegraph @

examples/dotarrows.dot

raw
1 /*
2
3 :Title: Graphviz arrows
4 :Tags: PGF
5
6 Shows how Graphviz arrows are mapped to PGF/TikZ arrows
7
8 Generated with::
9
10 $ dot2tex --prog=circo -s -ftikz dotarrows.dot > dotarrows.tex
11
12 */
13 digraph G {
14 graph [mindist=0.5];
15 node [texmode="math", shape=circle, style="circle, fill=green!20"];
16 edge [lblstyle="above,sloped"];
17 d2ttikzedgelabels=true;
18 c -> n_1 [arrowhead="normal", label="normal"];
19 c -> n_2 [arrowhead="inv", label="inv"];
20 c -> n_3 [arrowhead="dot", label="dot"];
21 c -> n_4 [arrowhead="invdot", label="invdot"];
22 c -> n_5 [arrowhead="odot", label="odot"];
23 c -> n_6 [arrowhead="invodot", label="invodot"];
24 c -> n_7 [arrowhead="none", label="none"];
25 c -> n_8 [arrowhead="tee", label="tee"];
26 c -> n_9 [arrowhead="empty", label="empty"];
27 c -> "n_{10}" [arrowhead="invempty", label="invempty"];
28 c -> "n_{11}" [arrowhead="diamond", label="diamond"];
29 c -> "n_{12}" [arrowhead="odiamond", label="odiamond"];
30 c -> "n_{13}" [arrowhead="ediamond", label="ediamond"];
31 c -> "n_{14}" [arrowhead="crow", label="crow"];
32 c -> "n_{15}" [arrowhead="box", label="box"];
33 c -> "n_{16}" [arrowhead="obox", label="obox"];
34 c -> "n_{17}" [arrowhead="open", label="open"];
35 c -> "n_{18}" [arrowhead="halfopen", label="halfopen"];
36 c -> "n_{19}" [arrowhead="vee", label="vee"];
37 c -> "n_{20}" [arrowhead="circle", label="circle"];
38 c [style="fill=red!80"];
39 }