| 1 |
/* |
| 2 |
|
| 3 |
:Title: PGF snakes |
| 4 |
:Tags: PGF |
| 5 |
|
| 6 |
Examples of PGF/TikZ snake line styles. See chapter 14.2 in the PGF/TikZ |
| 7 |
manual for all availale snake styles. Note that the snake styles requires |
| 8 |
line operations, so you have to use the ``-s`` option. |
| 9 |
|
| 10 |
Generated with:: |
| 11 |
|
| 12 |
$ dot2tex -fpgf -s --prog circo pgfsnakes.dot > pgfsnakes.tex |
| 13 |
|
| 14 |
*/ |
| 15 |
graph G { |
| 16 |
graph [mindist=0.5]; |
| 17 |
node [texmode="math", fixedsize=true, shape=circle, width=0.4, style="fill=green!20"]; |
| 18 |
c -- n_1 [style="snake=zigzag"]; |
| 19 |
c -- n_2 [style="snake=saw"]; |
| 20 |
c -- n_3 [style="snake=expanding waves, segment angle=10"]; |
| 21 |
c -- n_4 [style="snake=snake"]; |
| 22 |
c -- n_5 [style="snake=coil, segment amplitude=6pt"]; |
| 23 |
c -- n_6 [style="snake=brace"]; |
| 24 |
c -- n_7 [style="snake=triangles"]; |
| 25 |
c [style="fill=red!80"]; |
| 26 |
} |