I've got this issue for quite a long time: When I select a group nodes - about 6, some of them linked, and I want to layout hem into layered or tree layout. But if I call my layout method, selected nodes are moved automatically to the upper left location of diagram. Is there a way to, that these layouted nodes will be moved to:
- empty space somewhere in diagram
- the center point of the their previous location
Using root node is a good idea, but not every time is possible to select the right root node.
And other question, can you give me some hint, which layouting mechanism might be best for this situation:
I've got a diagram with dozens of nodes, they are of three kinds currently, but there might be more kinds in the future. They are in linked in generic (visual studio class-like) diagram.
I use Layered layout now, but sometimes nodes are placed quite strangely...
Any recommendation?
It should be graph aligned to some grid, it should look compact and it needs to be easy to identify all relations there.
Example: