| 1 |
/* |
| 2 |
|
| 3 |
:Title: Snaked edges |
| 4 |
:Tags: PGF |
| 5 |
|
| 6 |
This graph uses special `PGF/TikZ`_ styles to create some interesting |
| 7 |
visual effects. To get the snaked edges run dot2tex with the ``-s`` option |
| 8 |
to force straight edges. |
| 9 |
|
| 10 |
Generated with:: |
| 11 |
|
| 12 |
$ dot2tex -s --prog fdp balls.dot > balls.tex |
| 13 |
|
| 14 |
.. _PGF/TikZ: http://www.ctan.org/tex-archive/help/Catalogue/entries/pgf.html |
| 15 |
*/ |
| 16 |
graph G { |
| 17 |
node [shape=circle, fixedsize=True, width="0.2", style="ball color = green", label=""]; |
| 18 |
edge [style="snake=zigzag, green"]; |
| 19 |
a_1 -- c -- a_2; |
| 20 |
c [style="ball color=black"]; |
| 21 |
edge [style="snake=snake, blue", color=red]; |
| 22 |
node [style="ball color = red", label=""]; |
| 23 |
a_3 -- c -- a_4 --a_3; |
| 24 |
} |