Skip to main content



      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 12:05 Go to next message
Eclipse UserFriend
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 02:49 Go to previous message
Eclipse UserFriend
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: Mon May 19 02:17:52 EDT 2025

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

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

Back to the top