xyz2tex / dot2tex

Convert graphs generated by Graphviz to LaTeX friendly formats
Other
150 stars 44 forks source link

Handling of oversize edge labels #18

Open kjellmf opened 10 years ago

kjellmf commented 10 years ago

In the documentation I don't see no clear limitation for edge labels. My intention is to add arbitrary latex into edges of dot graphs. The attached tex source shows that oversize edge labels are not handled correctly (this is possibly related to the behavior of dot2tex to add label=" " to the edge). If this is not a bug or a regression, the issue reports should be used as base for a documentation enhancement.

GC issue: https://code.google.com/p/dot2tex/issues/detail?id=37

kjellmf commented 10 years ago

This is not a dot2tex issue, but a limitation of `neato. See http://www.graphviz.org/content/FaqEdgeLabelPlace.

Try using dot instead of neato. dot handles over sized labels better.

krichter722 commented 10 years ago

The problem is that dot layout just arranges nodes next to each other which produces a construct which is logically a graph but doesn't have any advantages a graph with a layout in a circle or another form than a long line (imagine 1000 nodes) would have (I know about the layout engines (neato & Co), but they don't work with arbitrary edge labels).

kjellmf commented 10 years ago

I understand. I will add a note about this issue in the documentation.