block by mbostock aba1a8d1a484f5c5f294eebd353842da

Adjustable Link Strength

Full Screen

This example demonstrates how to modify the parameters of a force-directed graph. After modifying the desired parameter (here link.strength), you should reheat the simulation using simulation.alpha and simulation.restart. Alternatively, you can prevent the simulation from cooling by setting simulation.alphaDecay to 0, or by setting simulation.alphaTarget to a positive value.

index.html

miserables.json