I have a spring layout for NetworkX (rendered in cytoscape.js) which seems to be working well for small datasets, but when it gets really large, nodes keep getting too close together and makes it unreadable. The further out you go in the graph, nodes end up spreading out evenly enough. But the closer in you go to the enter (blue squares) the more compact everything is even though there's still plenty of space.
Here's the algorithm I'm trying to use:
pos = nx.spring_layout(G, k=5/np.sqrt(G.order()), iterations=150, scale=8000)
print('after',pos)
nx.draw(G, pos,node_size=2)
I tried making k=6, but it just increases the distance from it's parent node, not any nodes that might be in the vicinity.
I'm hoping to find a way to make it more readable and have the nodes be more spread out.
