Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Eclipse Layout Kernel » Guidance on Auto-Layout w/ Semantics
Guidance on Auto-Layout w/ Semantics [message #1849931] Tue, 08 February 2022 22:38 Go to next message
Jonathan Li is currently offline Jonathan LiFriend
Messages: 10
Registered: November 2021
Junior Member
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 119 times)
Re: Guidance on Auto-Layout w/ Semantics [message #1850367 is a reply to message #1849931] Mon, 28 February 2022 07:13 Go to previous messageGo to next message
Sören Domrös is currently offline Sören DomrösFriend
Messages: 14
Registered: June 2021
Junior Member
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 07:14]

Report message to a moderator

Re: Guidance on Auto-Layout w/ Semantics [message #1850374 is a reply to message #1849931] Mon, 28 February 2022 08:57 Go to previous message
Nis Wechselberg is currently offline Nis WechselbergFriend
Messages: 4
Registered: February 2016
Junior Member
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: Sun Sep 15 20:40:49 GMT 2024

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

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

Back to the top