score:7

Accepted answer

Check out this graph. It shows how to use styles on edges, change the way the edge is layed out (lineInterpolate), and how to remove the arrowhead.

For more details on styling, see https://github.com/dagrejs/dagre-d3/wiki#demos. In particular, the following may be helpful:

score:1

tl;dr: Adding the property lineInterpolate: 'basis' while setting your edges will draw curved edges. For example,

...
g.setEdge('A', 'B', { lineInterpolate: 'basis' });
...

See this PR for more details.


Related Query

More Query from same tag