Skip to main content



      Home
Home » Modeling » Eclipse Layout Kernel » Guidance on Auto-Layout w/ Semantics
Guidance on Auto-Layout w/ Semantics [message #1849931] Tue, 08 February 2022 17:38 Go to next message
Eclipse UserFriend
I need a layout algorithm to consider node types. Using the picture attached as an example. I'd like the nodes of the same color to be grouped together in the same column/layer.

I was looking at ELK layered and it seems to do something similar. I'm wondering whether its possible to modify one of the layering options in https://github.com/eclipse/elk/tree/master/plugins/org.eclipse.elk.alg.layered/src/org/eclipse/elk/alg/layered/p2layers so that it could group the nodes by type.
  • Attachment: Untitled.png
    (Size: 61.21KB, Downloaded 173 times)
Re: Guidance on Auto-Layout w/ Semantics [message #1850367 is a reply to message #1849931] Mon, 28 February 2022 02:13 Go to previous messageGo to next message
Eclipse UserFriend
Hi, generally it is possible to group nodes in layers given the fact that no in-layer edges exist.
See an example here

The solution is a mixture of cycle breaking and layer assignment.

With the next release it will also be possible to do cycle breaking based on the order of the nodes in model.

You can also try to ask your questions here

[Updated on: Mon, 28 February 2022 02:14] by Moderator

Re: Guidance on Auto-Layout w/ Semantics [message #1850374 is a reply to message #1849931] Mon, 28 February 2022 03:57 Go to previous message
Eclipse UserFriend
Hi,

you could also have a look at layout partitions, as in this example

Online Editor
Previous Topic:Crossing minimaization whilst preventing excess node re location ?
Next Topic:Attempt to use elk+graphviz fails
Goto Forum:
  


Current Time: Mon May 12 06:30:57 EDT 2025

Powered by FUDForum. Page generated in 0.09041 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top