Surely there are more than 2 links shown in your screenshot?
LayeredDigraphLayout is doing the routing of the links that way. It actually makes an effort to avoid overlapping link segments there, unless they connect with the same node. You can turn off that routing behavior by setting LayeredDigraphLayout.linkSpacing to zero.