dagrejs / dagre-d3

A D3-based renderer for Dagre
MIT License
2.86k stars 591 forks source link

Too many child nodes at the same level for a single parent node #239

Open YanYangTian opened 8 years ago

YanYangTian commented 8 years ago

If a parent node have 20 child nodes, the current layout engine will put all of them in a single line. It will be very useful to setup a threshold for example 10, then Dagre can make the 20 nodes into 2lines. as the following graph,how can i put nodes into 2 rows. Thank you! image

kdh6429 commented 8 years ago

+1 Same here. Since dagre-d3 made its node level. It won't be easy but hope to support this :)