An example of a d3-force graph with 536 nodes and 9627 edges. The new canvas-based rendering is significantly faster than the SVG Force-Directed Graph.
To keep nodes on the screen, I tweaked the following forces:
- Lowered the
strength
of the charge force and added adistanceMax
- Added vertical and horizontal forces which help keep nodes from drifting offscreen with
forceY
andforceX
Facebook egonet data from Julian McAuley and Jure Leskovec.