I have 10 entries (but could me more or less) and those entries connect to other entries. I'm having difficulty creating a function that, given the entries and the connections, creates something like this: (the position of the entries is not relevant)
Basically what I want is that the lines don't overlap like this:
This seems to me like quite complex but I would like to through the challenge in here to see if someone comes up with a solution.