Is there a way to control link position

Is there a way to control the link spacing and sort of direct routing? I’m trying to generate a state diagram and no matter what, the links and link text always overlaps other link text. This is the closest I’ve been able to come so far:

However, for some items which have more states, this gets ridiculously complicated. I can lay out the nodes in a well spaced manner but the links are completely confounding me.

The existing state diagram sample assumes that you know the states ahead of time - in my case I have no idea what they are going to be.

Any insights at all would be appreciated. I’ve scoured the examples and the API’s and tried about 50 different ways to do this with no luck.

Thanks.

Jeff

Have you tried using ForceDirectedLayout, as in Concept Map sample?

You can set the Link.curviness to control how curvy or straight the route is, when not using specific spots or sides on nodes/ports.