Graphviz (http://www.graphviz.org/) is an exceptionally effective package for drawing graphs of all kinds. Its internal node labelling facility is relatively primitive, but as it allows images to be used as labels, one can produce beautiful graphs using LaTeX to generate appropriate images and then calling Graphviz. I have got this to work by
- Using LaTeX to generate a PDF with one image on each page
- Using ImageMagick convert to convert the PDF into a series of PNGs
- Including the PNGs in input to Graphviz's 'dot' utility.
The results are nice, but it is clear that using a raster format in step 2-3 is visibly degrading the results. I would like to use a vector format instead. Unfortunately, AFAICS, Graphviz does not accept eps and LaTeX does not generate svg. Can anyone see a viable series of tools to get this to work?
(This list of input formats accepted by Graphviz may help: http://www.graphviz.org/doc/info/output.html#d:image_fmts)
NB. I am aware that Graphviz has some limited facility for accepting LaTeX node labels. I am however using pretty complicated drawings.
Edit: here's an example of the kind of thing I'm drawing... http://people.ds.cam.ac.uk/mg262/derivation404.png
dot2texipackage that allows to export the image intopgf,tikzorpstrickscode. From that point on one could insert labels very easily. – Claudio Fiandrino Sep 13 '12 at 16:14