12

How to draw a graph with auto layout, many-to-many with lines not crossing the boxes using d3?

I'd like to accomplish something like this: http://www.graphdracula.net/showcase/ http://live.yworks.com/yfiles-for-html/1.1/demos/DataBinding/demo.yfiles.binding.interactivegraphsource/index.html

I guess that's the best description of what I need (something like tree, but with multiple parents): enter image description here

El Kopyto
  • 1,157
  • 3
  • 18
  • 33

3 Answers3

7

Dagre-d3 is the best solution that I found:

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

El Kopyto
  • 1,157
  • 3
  • 18
  • 33
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.

patorjk
  • 2,164
  • 1
  • 20
  • 30
2

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

Fuzzy
  • 190
  • 7