Graph's network: untangle edges

Hello, forum

I am looking for your help since I am getting gray hair trying to untangle edges that were made by network using adjacency matrix. There are nodes that has values if to or to not connect with other node. Those values are converted into lines, that make this chaotic visual network.

First of all I’ve tried creating a boundary surface of shown rectangle, subdividing it to parts. Tried to proceed with rectangular edge to edge connection, but felt like it might not be adaptable enough when variables change, so I just quit that sketch alike idea.

Then I was suggested using kangaroo2, but had troubles since this tool has never been in my repertoire.

Optimally, goal would be not only to untangle, but also to attract those bubbles for them to colide

I am looking for any tips and directions that would guide me towards solution. Thank you in advance.

graph’s-network_untangle-edges.gh (18.2 KB)

difficult to help based on screenshots… please attach your GH file with internalized geometries