You can see that the arrow head on top is facing left, but it is supposed to face down. Root cause is there are two duplicate points on the edge, which makes SVG cannot decide the direction, so it use the default direction.
Expected behavior
There shouldn't be duplicate points on an edge.
Describe the bug There are duplicate points on edges. It makes the SVG marker-end arrow head have a wrong direction.
Reproduce it
You can see that the arrow head on top is facing left, but it is supposed to face down. Root cause is there are two duplicate points on the edge, which makes SVG cannot decide the direction, so it use the default direction.
Expected behavior There shouldn't be duplicate points on an edge.
ELK Version 0.9.3
Additional context
You can see that
startPoint === bendPoints[0]
andendPoint === bendPoints[bendPoints.length-1]
.But this doesn't happen to other edges, only this edge has the issue.