score:7

Accepted answer

Dagre-d3 is the best solution that I found:

https://github.com/cpettitt/dagre-d3

score:2

To minimize line crossings, you probably need a layered digraph layout. Just google that phrase.

score:4

For anyone else who comes across this, here's another possible solution: (see the "Directed Graph with downward-pointing edges" example)

http://marvl.infotech.monash.edu/webcola/

It can also be plugged into d3.js and used in place of the force layout.


Related Query