[ELK] Layout disjunct graphs [message #1789884] |
Thu, 31 May 2018 06:59  |
Eclipse User |
|
|
|
Hi,
I'm using the ELK layered algorithm for my application and I'm looking for a layout option which changes the layout of disjunct graphs.
Currently these are shown side-by-side, but I would like to show one below the other. Is there a layout-option which will do this?
Kind regards,
Christophe
|
|
|
|
|
Re: [ELK] Layout disjunct graphs [message #1790235 is a reply to message #1790113] |
Thu, 07 June 2018 06:33  |
Eclipse User |
|
|
|
Christophe De Loor wrote on Tue, 05 June 2018 10:42
I'm thinking of using a hidden stub node which connects the disjunct graphs. This should force the positions of the separate graphs.
Right, I understand the problem. The hidden node would of course have to be connected to the leftmost nodes of the graphs, but you might not know which they are.
One solution might be to compute separate layouts for each subgraph, and then combine those manually.
We might also consider adding an option to our box layouter to always lay out subgraphs in a single row or column, which it currently does not, but which would solve your use case without having to add custom code on your side.
|
|
|
Powered by
FUDForum. Page generated in 0.04360 seconds