How to set the spacing between FromArrow and Line

i draw a diagram with GoLayoutTree

like this

but i want the diagram show the first time like this

i want to increase the spacing between the FromArrow and line

how can i do this? thanks…

There are a couple of things affecting this.
First, if you have link.AvoidsNodes routing enabled, you can try setting that to false. That should route the line in the middle.
But... if you really want AvoidsNodes, try setting the port.EndSegmentLength to be something a little less than half the distance between the layers of nodes.

very good…
i solved the problem by set the link.AvoidsNodes=false