Hide links when nodes are close


When moving nodes on top of each other, the links are not rendered properly:


Would it be possible to hide the links based on the link length or distance between start and end?

Some users might find such behavior misleading. If there’s a legitimate link between two nodes, it should be visible.

I think the best solution would be to define a custom Link subclass that overrides Link.computePoints. Call the super method and finally return its value. But also set the Link.opacity to zero or one depending on whatever criteria you like.

Thanks, that would work!