1
votes

I am trying to draw a graph using Graphviz in Dot language, and this graph has edges which runs through nodes.

Please see the attached picture below.

So far I did not able to find a way to do this. Any help would be highly appreciated!.

Thanks in advance.
( Tips on any other way to render a graph like this would also be really helpful )

Graph with edges going through the nodes

1
While there may be a way to trick graphviz into creating such a picture, I don't think it will be straightforward, and I don't think it's the right tool for this job. Graphviz has some layouts (hierarchical, spring model, radial, circular) and handles automatic layout for these layouts pretty well. For other specialized layouts, using a different tool or rolling your own may yield better results, especially if you need to repeat it with different inputs. - marapet
@marapet: So there is no possible way of drawing the edges which goes through the nodes in Graphviz. Actually I have tried dozen of other different libraries and Graphviz was the only one that I could find, which can generate graphs at least near to my requirement. But unfortunately, it seems like Graphviz is also unable to render edges like above diagram. - Baxter

1 Answers

0
votes

The information above is not that sufficient, however you can check the Drawing with Constrained ranks (Ref: Drawing graphs with dot by "Emden Gansner and Eleftherios Koutsofios and Stephen North").

Graph with constrained ranks

Please read the below for more information :Drawing graphs with dot