Overlapping Lines

Hi,

In my diagram sometimes lines get overlapped with other lines. I have attached example images below and hilighted lines are overlapped. How can I put some space between lines ?

I think ,you want to add the routing code in your current link template code.
Please refer this below link…
https://gojs.net/latest/intro/links.html#Routing

Are the gray rectangles separate ports? If so, you could set their GraphObject.fromEndSegmentLength to different values.