Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to increase space between edges (splines) and nodes in graphviz?

Tags:

graphviz

neato

I manually specified the starting position of every node and set splines=true.

The resulting image appears as follows:

graph

The spline between 1031 and 1028 appears to touch nodes 1030 and 1029. I am just wondering if there's a way to increase the margin here. I have tried specifying esep="+3,3" to give a very high margin around nodes but the same graph is still output.

like image 692
Dan Q Avatar asked Mar 22 '12 21:03

Dan Q


1 Answers

As you're laying out the nodes by hand, why not lay out the spline by hand as well with:

pos splineType

Splines are somewhat more complex to position than nodes, but not terribly so.

To get started, run your graph through neato with the output format set to 'dot' (-Tdot) and it will generate the lower-level layout. Then you can adjust the coordinates for the problem spline.

like image 150
blahdiblah Avatar answered Sep 22 '22 14:09

blahdiblah