elk icon indicating copy to clipboard operation
elk copied to clipboard

`elk.stress` edge labels are not positioned as expected in unconnected graphs

Open YorikHansen opened this issue 1 year ago • 1 comments

Describe the bug When using the elk.stress algorithm to layout an unconnected graph, edge labels are not always correctly positioned on their corresponding edges. This issue appears to occur specifically when multiple nodes form a cycle (or would form a cycle if the edges were treated as undirected or bidirectional).

Example (edgeLabels.inline: true makes this even clearer)

Expected behavior The edge labels should be at their / on their corresponding edge.

Screenshots grafik

ELK Version 0.9.0 and above (note: this is not an issue in v0.8)

Additional context Add any other context about the problem here.

YorikHansen avatar Jan 05 '25 23:01 YorikHansen

A "rollback" to v0.8 would not work, as there seem to be other issues regarding label placement: example

YorikHansen avatar Jan 06 '25 08:01 YorikHansen