Possible Duplicate:
LaTeX for Graph Theory?
For the first time, I was going to draw a graph in LaTeX. (I was intended for a graph similar to the following)
Graph Theory is an important topic in Computer Science so I thought graph-drawing in LaTeX should be trivial, i.e. a package is given the adjacency matrix of graph and it positions each node in its perfect place automatically without the user having to manually place each node. But after some googling I now feel graph drawing is probably a time consuming task in the TeX world.
Is it better to draw graphs with some graphic software and insert it as an image, or there is some better solution? (How do I balance the trade-off between elegant looks and time-efficiency?) Is there a software that allows you to draw a graph in a GUI and then generate LaTeX markup for that (I mean a graph specific app not a general one).
note: This is not a duplicate, please note to bold text.
R, the packageigraphandtikzDevicemight suffice. Or you could look at http://www.texample.net/tikz/ for examples usingtikz. – mnel May 31 '12 at 06:25dot2tikzprogram which is available via texample (which mnel has linked to). – Andrew Stacey May 31 '12 at 07:05tikz-pgf, in its development version, has a new module to draw graphs. All the math work is done at lua level. Till Tantau (the author of tikz) is working hard those days to make the code cleaner, the user interface as intuitive as in other parts of tikz and to document the new features. – cjorssen May 31 '12 at 11:28dotfile that could be converted to TikZ viadot2tikz. I suspect that the "java applets" use an algorithm that works okay for a small number of nodes but scales badly. Graphviz has quite sophisticated algorithms that can deal with a vast number of nodes. – Andrew Stacey May 31 '12 at 11:40