dagrejs / dagre

Directed graph layout for JavaScript
MIT License
4.63k stars 600 forks source link

setNode rank has no effect in your example #243

Open WilfulTravesty opened 6 years ago

WilfulTravesty commented 6 years ago

starting with your example at https://dagrejs.github.io/project/dagre-d3/latest/demo/clusters.html

I merely modified the edges then tried added rank to try and get node E to be at the top of the graph with node A. http://jsfiddle.net/wolf1/5nepm3vk/

No matter how I use the 'rank' attribute, it has no effect. I tried looking at your test cases in the repository under test/ but nothing worked.

Is there a way to get node E to be at the top of the graph with A ?

vniekecc commented 5 years ago

Can this be merged with dagre-d3?