A basic example.
Generated with:
$ dot2tex --autosize -tmath ex1.dot > ex1.tex
Download as: [PDF] [DOT] [TEX]
digraph G { a_1-> a_2 -> a_3 -> a_1; }