I am trying to draw a graph with many nodes and edges.
However, the graph is becoming too clumsy, with nodes and edges overlapping. I tried (unsuccessfully), the following, all or combinations of these.
size = "12.0, 20.0!";
margin = 0.0;
len = 1.0;
I am using neato
to generate a png file.
The size specification did not even seem to work.
Any tips will be appreciated.
See Render Graphviz graphs directly in your posts Yep, repositioning nodes, edges, and clusters is often difficult. Each of the three has its own challenges.
If the value converts to "false", and it is available, Prism, a proximity graph-based algorithm, is used to remove node overlaps. This can also be invoked explicitly with overlap=prism.
If Prism is not available, or the version of Graphviz is earlier than 2.28, "overlap=false" uses a Voronoi-based technique. This can always be invoked explicitly with "overlap=voronoi". If overlap="scalexy", x and y are separately scaled to remove overlaps.
By default, overlap="prism" is equivalent to overlap="prism1000". Setting overlap="prism0" causes only the scaling phase to be run. If Prism is not available, or the version of Graphviz is earlier than 2.28, "overlap=false" uses a Voronoi-based technique. This can always be invoked explicitly with "overlap=voronoi".
Try using SFDP using graph [ overlap=false ]
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With