Add Edge Reverse

Elk really wants to make edges go left to right. Really. So much so that if you ever create a feedback edge (one going in the reverse direction from the regular data flow) it shifts heaven and earth (all the nodes!) so that it can do this. This results in some pretty awful diagrams.

The solution implemented here is to add a flag that conveys to Elk that this link, in fact, wants to run in reverse.

Before


This problem is solved by adding a “-1” after the link spec to hint to the layout engine that the link should be rendered backwards.

After


So much nicer.

Updated: