elk icon indicating copy to clipboard operation
elk copied to clipboard

`mergeEdges` should merge individual edges as late as possible in a branch situation regardless of branch lengths

Open giorgosera opened this issue 3 years ago • 1 comments

As discussed on Gitter I have this graph which does not satisfy my use case.

Specifically, I've set mergeEdges to true and as you can see the two rightmost edges are merging at a different level than the leftmost one. The desired result would be for all of them to merge at the bottom of the branch as seen in this other graph (for which I have removed the INTERACTIVE layering strategy).

If I set the mergeEdges to false then the edges are routed as expected but of course this doesn't generate the desired output.

Could we please have an option where the edges can merge as late as possible?

giorgosera avatar Oct 27 '22 09:10 giorgosera

In another case (demonstrated here and the screenshot below) the edges merge unexpectedly in a different way.

image

If I set mergeEdges to false then the edges are all "folding" at the same level which is almost the desired effect (ofc without the edges merging).

image

The fully desired output would be the last screenshot but with the edges merging.

giorgosera avatar Oct 27 '22 11:10 giorgosera