In this example: http://bl.ocks.org/mbostock/1747543:
...Mike shows us how to avoid collision among nodes so that no two nodes overlap each other.
I wonder if it is possible to avoid collision between nodes and edges so that no node 'clips' or overlaps an edge unless it is connected by that edge.
The following example using D3 force-direct shows that node L
overlaps with the edge connecting I
and A
, and similarly, node M
overlaps with the edge connecting L
and D
. How do we prevent such cases?