Project: forced directed graph, links looks so tangled, any advice?

Project: forced directed graph, links looks so tangled, any advice?
0

#1

pen: [ https://codepen.io/ustvarno/full/AXyQEy/ ]

How to unTangled this? To look similar like this or this:
[ http://codepen.io/mtroiani/full/YWzxEO
, https://codepen.io/FreeCodeCamp/full/xVopBo ]

Also how to make that, nodes doesn’t go above bounds? i tried this with strength and distanceMax is this best solution?