Is there a way to avoid superposition of edges & nodes ?
redouane59 opened this issue · 2 comments
redouane59 commented
mbostock commented
There’s nothing built-in to prevent this, but possibly you could write a custom force that tries to avoid edges passing through unrelated nodes.
redouane59 commented
Hi @mbostock , do you have an idea to disable the fact that the edges / the nodes tend to be always aligned with other elements on the same line when moving them which provokes this behavior ?
see : https://twitter-social-graph.firebaseapp.com/index.html
Maybe the forceCollide
method is guilty ?
https://github.com/redouane59/social-media-raiser/blob/master/social-graph/public/index.html