Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Eclipse Layout Kernel » Crossing minimaization whilst preventing excess node re location ?
Crossing minimaization whilst preventing excess node re location ? [message #1832297] Tue, 15 September 2020 16:05 Go to next message
Jonathan Menzies is currently offline Jonathan MenziesFriend
Messages: 60
Registered: May 2020
Location: California
Member
Hi there,

We are using ELK with Sirius to layout our diagrams.

With the settings below we minimize crossing:

setProperty(LayeredOptions.CROSSING_MINIMIZATION_STRATEGY, CrossingMinimizationStrategy.INTERACTIVE);
topNode.setProperty(LayeredOptions.CROSSING_MINIMIZATION_SEMI_INTERACTIVE, true);

However in certain case this results in crossing because it won't reposition the node. If we use the setting Layer_SWEEP, it results in nodes being re positioned where not necessary.

Is it possible to achieve a middle ground here where it will re position to avoid crossing but keep their position if no crossing would occur ?

Many Thanks
Jonathan
Re: Crossing minimaization whilst preventing excess node re location ? [message #1850373 is a reply to message #1832297] Mon, 28 February 2022 07:49 Go to previous message
Sören Domrös is currently offline Sören DomrösFriend
Messages: 14
Registered: June 2021
Junior Member
This might be a little late, however, you can try to use the considerModelOrder options.
This tries to use the order of the model (here a textual one) to do crossing minimization. If the order is indeed crossing minimal it will be taken. If it is not a better solution might be taken. For details please look here.

With the next ELK release (0.8.0 probably) it should also be possible to do cycle breaking by model order.
Previous Topic:How to use ELK layout on GEF editor
Next Topic:Guidance on Auto-Layout w/ Semantics
Goto Forum:
  


Current Time: Wed Jul 24 12:36:41 GMT 2024

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

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

Back to the top