Skip to main content



      Home
Home » Modeling » Eclipse Layout Kernel » Pathing not aligned - Parameter to tweak(The ELK algorithm creates some unintuitive pathing for one or more paths that are different to the rest. I am looking for a tip on how to approach this.)
Pathing not aligned - Parameter to tweak [message #1864484] Tue, 19 March 2024 09:21 Go to next message
Eclipse UserFriend
index.php/fa/44068/0/Hi community,

working on a layout that produces some unintuitive pathing. Cable 10 (The first blue path) takes another route than the rest, while I would hope that all take directionally the same route.
Hoping that someone has some experience which parameters could be the right ones to tweak here. I already adjusted Thoroughness in both directions without success.

Thank you for any tip!

Current set up:

{
        "elk.algorithm": "layered",
        "elk.alignment": "TOP",
        "elk.direction": "RIGHT",
        "elk.layered.nodePlacement.favorStraightEdges": "FALSE",
        "elk.layered.nodePlacement.bk.edgeStraightening": "NONE",
        "elk.portAlignment.default": "BEGIN",
        "elk.considerModelOrder.components": "FORCE_MODEL_ORDER",
        "elk.font.size": "12",
        "elk.aspectRatio": "1.13f",
        "elk.spacing.componentComponent": "16",
        "elk.spacing.edgeEdge": "16",
        "elk.spacing.edgeEdgeBetweenLayers": "16",
        "elk.spacing.nodeNode": "8",
        "elk.spacing.edgeNode": "16",
        "elk.spacing.portPort": "16",
        "elk.layered.nodePlacement.strategy":
          nodes.length === 2 ? "SIMPLE" : "BRANDES_KOEPF",
        "elk.layered.considerModelOrder.strategy": "NODES_AND_EDGES",
        "elk.layered.considerModelOrder.components": "NODES_AND_EDGES",
        "elk.spacing.portsSurrounding": "[top=20,left=0,bottom=20,right=0]",
        "elk.layered.thoroughness": "2",
        "elk.layered.nodePlacement.bk.fixedAlignment": "LEFTUP",
      },
  • Attachment: image (1).png
    (Size: 776.35KB, Downloaded 200 times)
Re: Pathing not aligned - Parameter to tweak [message #1864502 is a reply to message #1864484] Wed, 20 March 2024 06:06 Go to previous messageGo to next message
Eclipse UserFriend
I suggest trying out the different options in elklive https://rtsys.informatik.uni-kiel.de/elklive/elkgraph.html and send me the link to your model. Otherwise, I have to guess all the options you do not send me.

I noticed the following:
- The option does not exist (the correct option is somewhere below) "elk.considerModelOrder.components": "FORCE_MODEL_ORDER",
-This option tends to create local minima regarding crossing minimization expecially if you use port constraints on the nodes (which you seem to be doing) "elk.considerModelOrder.components": "FORCE_MODEL_ORDER",
- "elk.layered.thoroughness": "2", This is a very low value.
Re: Pathing not aligned - Parameter to tweak [message #1864536 is a reply to message #1864502] Fri, 22 March 2024 00:30 Go to previous message
Eclipse UserFriend
Hi Soeren,

thanks for getting back to. The app seems to not let me create the URL to the model.
The Jason file with the code is under this link. The isolated code works in the app.
https://drive.google.com/drive/folders/1KFxLBtOi5j3UEnH3uArcdEX9f7g4IOsT?usp=share_link

the "elk.layered.thoroughness" seemed to work better for us when using lower values. Initially we used 1, then moved to 2 as the input got more complex.

Thank you!
Till
Previous Topic:Unclonnable property - ElkReflect
Next Topic:Spacing bend points away from nodes
Goto Forum:
  


Current Time: Wed May 21 17:24:11 EDT 2025

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

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

Back to the top