dagrejs / dagre-d3

A D3-based renderer for Dagre
MIT License
2.85k stars 587 forks source link

Restrict number of nodes in a row #190

Open saimaparveen opened 9 years ago

saimaparveen commented 9 years ago

I am using dagre-d3 for tree like structure. The graph width keeps on increasing if number of child node node is high. Where is the exact code for node placement algorithm where I can add condition to restrict the number of node?

cpettitt commented 9 years ago

Dagre doesn't do this out of the box with its ranking algorithm but there are papers on other ranking algorithms that can achieve this. If someone wants to give it a shot I'd be happy to pull it into dagre.

bsideup commented 8 years ago

@cpettitt Huge +1 from us. Width limitation would be really great addition to Dagre. We can help with testing as well