-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
digraph sometimes doesn't render parallel edges, depending on order. #5
Comments
Hey Mark. I don't get any difference in the rendering of the two. Could it be a graphviz issue? Here's my version info:
|
I'm on version 2.30.1. Through more testing, I've found that the parallel edge does get drawn as long as all the edges between a given pair of vertexes are grouped together, but doesn't get drawn when they are separated by info about other edges. |
I've worked around the problem by sorting the edges first before passing them to digraph, but if you need me to do anything to further troubleshoot this so others are not affected, let me know. |
Can you try feeding the output of the I'll also try upgrading Graphviz to see if I can reproduce it, although I'm not sure what to do about it. |
I get the same problem when I feed the output directly to dot at the command prompt. Dorothy generates the following string: => (-> [[1 3 {:color :blue, :dir :none}]
[1 2 {:color :green, :dir :none}]
[1 3 {:color :red, :dir :none}]]
digraph
dot)
"digraph {\n\"1\" -> \"3\" [color=blue,dir=none];\n\"1\" -> \"2\" [color=green,dir=none];\n\"1\" -> \"3\" [color=red,dir=none];\n} " and when I feed it to dot at the command prompt, I get the following png: |
Feeding that input directly to dot versions 2.28.0 and 2.38.0 gives the correct output (both red and blue edges between 1 and 3). Maybe there was a bug in 2.30.0 that has since been fixed? |
OK, good to know it's not an issue in the newer versions of dot. Thanks On Sun, Apr 13, 2014 at 8:51 PM, Dave Ray notifications@github.com wrote:
|
This renders the graph correctly, but simply swap two of the edges and it no longer works properly:
The text was updated successfully, but these errors were encountered: