@Sven Groot:

I've converted GraphViz graphs into LaTeX for embedding in Automata homework. It was very tedious, but the end result was textbook quality.

Generally when I do stuff in LaTeX I try to borrow as much stuff from public sources as I can. Not unlike CSS work really, there is no reason to do any of that from scratch. Smiley This can save you a lot of time.