eclipse / elk

Eclipse Layout Kernel - Automatic layout for Java applications.

Home Page:https://www.eclipse.org/elk/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: Fixed Layout & Edge Routing

azriel46d opened this issue · comments

Hi, given that I already have all the node positions prior to getting a layout from ELK is it possible to
either

  1. Use Fixed Layout and get the Edge Routes
  2. Use Layered Layout with fixed (locked) nodes (am seeing the Position attribute with Layered but haven't gotten it to work).

Thanks

Hi, sadly the answer is no. There's an open feature request for standalone edge routing #315 and there've been various requests to add this functionality [1, 2] but it's not on the current agenda.

Regarding your second point, yes there's the position layout option. But it cannot be used it precisely fix the positions of the nodes during layered layout. You can use the various interactive strategies to somewhat preseve the topology of the positions you already have. (It might be enough or may even be require to use a node's regular position instead of the layout option though; I'm not completely sure right now):

[1] https://www.eclipse.org/forums/index.php/t/1086846/
[2] https://www.eclipse.org/forums/index.php/t/1093001/

Just for completeness's sake: #315 tracks our desire to have a stand alone edge router.