| 1 |
/* |
| 2 |
:Title: PSTricks arrows |
| 3 |
:Tags: PSTricks |
| 4 |
|
| 5 |
Examples of Pstricks style arrows. |
| 6 |
To generate this graph you can write:: |
| 7 |
|
| 8 |
$ circo -Txdot pstarrows.dot | dot2tex -fpst > pstarrows.tex |
| 9 |
|
| 10 |
*/ |
| 11 |
digraph G { |
| 12 |
d2tdocpreamble="\usepackage{pstricks-add}"; |
| 13 |
graph [mindist=0.5]; |
| 14 |
node [texmode="math", fixedsize=true, shape=circle, width=0.4, style="linecolor=red, fillcolor=white"]; |
| 15 |
edge [color="blue"]; |
| 16 |
c -> n_1 [style="arrows=->", texmode="math", label=">"]; |
| 17 |
c -> n_2 [style="arrows=->>", texmode="math", label=">>"]; |
| 18 |
c -> n_3 [style="arrows=-<", texmode="math", label="<"]; |
| 19 |
c -> n_4 [style="arrows=-*", texmode="math", label="*"]; |
| 20 |
c -> n_5 [style="arrows=-{]}", texmode="math", label="]"]; |
| 21 |
edge [color="red"]; |
| 22 |
c -> n_6 [style="arrows=-o", texmode="math", label="o"]; |
| 23 |
c -> n_7 [style="arrows=-H", texmode="math", label="H"]; |
| 24 |
c -> n_8 [style="arrows=->, nArrowsA=5", texmode="math"]; |
| 25 |
} |