Any ELK Grid Layouts in the Wild? [message #1849423] |
Wed, 19 January 2022 08:51  |
Eclipse User |
|
|
|
I need a grid style layout where I have nodes on a grid with edges between them. None of the existing ELK layouts I've tried work as any type of grid/rectangular layout does not include edges and any layout with edges wants to force my graph into some type of directed tree.
Anyone know of any open license grid layouts out there? I've searched , but have come up empty and it's going to be a decent investment in time to figure it out to write a new one. Enough that I'll likely just write a dot graph since there are example grid layouts for that (although my app will look less great)
|
|
|
|
Re: Any ELK Grid Layouts in the Wild? [message #1849787 is a reply to message #1849533] |
Wed, 02 February 2022 10:19  |
Eclipse User |
|
|
|
An example of what I need is show here in a graphviz grid example:
https://graphviz.org/Gallery/undirected/grid.html
There are two key provisions I see here:
1) weighted edges essentially push the nodes into a grid. This particular graph is undirected. All the ELK layouts seem to want things to be directed and thus the edges start shifting everything diagonally or just randomly.
2) specifying that certain nodes are in the same "rank" aka row. I can only approximate this by setting the aspect ratio of box or rect ELK layouts to specifically match my model and relying on the aspect ratio to cut off rows where I need them to. Which isn't dynamically settable as far as I can tell.
It's been a disappointed to watch the entire set of layouts fail for this task. For the time being, I'm pausing the effort for a second time and just writing a FreeMarker template to generate a Graphviz dot file. Eclipse solutions for viewing graphviz dot files are also massively overly complex (install GEF, install Zest, install JavaFX, install .. install install - all of which burden how easily I can deploy and get all the dependencies in order (which now changes every 3 months!))
Thanks for your suggestion. I tried box and rect and they, sort of, get me closer. But my critical feature to visualize involves superimposing edge network connectivity on top of a grid of nodes.
With the box and rect layouts ignoring the edges, it's just a huge entangled mess that users would hate me for if I made them manually lay it out.
While I can give a user a view now, I've completely disconnected them from my Eclipse plugin and the whole, really wonderful, Sirius environment.
|
|
|
Powered by
FUDForum. Page generated in 0.02595 seconds