Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I set nodeSep only for all siblings but not for all nodes in the same rank? #455

Open
bingqianyang98 opened this issue Oct 23, 2024 · 0 comments

Comments

@bingqianyang98
Copy link

bingqianyang98 commented Oct 23, 2024

Here is my current configuration of the dagre layout:

dagreGraph.graph().rankdir = 'TB'; 
dagreGraph.graph().nodesep = 25;`
dagreGraph.graph().edgesep = 50;
dagreGraph.graph().ranksep = 60;
dagreGraph.graph().ranker = 'network-simplex';
dagre.layout(dagreGraph);

However, the tree looks like this:
bug

I would like the siblings ma
intain the same nodeSep but not all nodes in the same rank, meaning I would like a = 25, b = 25, and c != 25.

Does anyone know how I can reach that layout? Thanks in advance for any suggestions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant