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

Layered layerChoiceConstraint Force Same Layer #206

Open
simonwarchol opened this issue Dec 27, 2022 · 1 comment
Open

Layered layerChoiceConstraint Force Same Layer #206

simonwarchol opened this issue Dec 27, 2022 · 1 comment

Comments

@simonwarchol
Copy link

I'm new to ELK / ELKjs, but wondering if there's any way to force nodes to be on the same level without actually specifying the level number in a layered layout.

Essentially, I want to make sure nodes a,b,c are on the same level, but don't care which level the algorithm assigns to them.

@soerendomroes
Copy link
Member

Currently this is possible using partition or via interactive layout strategies. Try to have a look at the examples on elklive. Both do require setting some kind of number but it does not always have to be the correct one since layers can be skipped. With Elk 0.9.0 it will be possible to specify such constraints by the ordering in the parent node.

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

2 participants