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

Force rank to be from left #217

Open
Marais opened this issue Aug 6, 2017 · 3 comments
Open

Force rank to be from left #217

Marais opened this issue Aug 6, 2017 · 3 comments

Comments

@Marais
Copy link

Marais commented Aug 6, 2017

This is more of a question than an actual bug. I'm using dagre with jointjs.
I looked at the dagre API, and I can't get the elements rank to be on the left as indicated by the picture.

Is it possible to do it in dagre?
What I have:
image

This is what I want:
image

@dcosson
Copy link

dcosson commented Mar 2, 2018

I have the same question, I'm using cytoscape-dagre.

Mine seems like a fairly obvious use case - I'm drawing a dependency graph of steps to complete a task, and I would like each step to show up in the rank of the soonest it can be started (so shifted left instead of right).

I can get it work manually by increasing the minlen property for any individual node. By traversing the output graph breadth-first and setting the minlen of every edge to something like max(rank of each parent of the source node) + 1 I think that should work. But is it possible to make a setting to do this automatically?

@xiaopow
Copy link

xiaopow commented Feb 28, 2020

Did you guys manage to get this working?

@EmilStenstrom
Copy link

I think this is the same problem as this PR tries to solve: #271

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

4 participants