Avoid nodes from overlapping

Hi

How can i avoid nodes from overlapping? I use ForceDirectedLayout.
Thx

There’s no guarantee about that. It’s also possible for there to be situations where the forces affecting the nodes might constrain them to an area that is too small to hold all of the nodes without the likelihood of some overlap.

You could increase the electrical charge on the nodes in order to
increase the repulsion between nodes. The easiest thing to do is to set the ForceDirectedLayout.DefaultElectricalCharge property. You’ll need to experiment to get the best value for your kinds of graphs.