This example demonstrates applying d3-drag to a force-directed graph computed using d3-force. When the drag gesture starts, the targeted node is fixed to the pointer; it is released when the gesture ends. In addition, the simulation is temporarily “heated” during interaction by setting the target alpha to a non-zero value.
Compare to the SVG version.
Hi, thanks for this.
Could you post a version with nodes colour-coded depending on the group membership?