Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Node2Vec Force-Directed Graph

Public visualization

Viewing a saved revision (read-only)

d85ffeadaec6441b97d93fb85171b5e4

Fork of Node2Vec Force-Directed Graph

0 stars0🌍 Public
Rrobinjohn.inc@gmail.com
Last edited Jul 12, 2024
Created on Jul 12, 2024

This example shows a force-directed graph of character co-occurrences in the novel *Les Misérables*, with nodes colored randomly by group and labeled with character names. The code uses D3 v7’s `forceSimulation`, `forceLink`, `forceManyBody`, and `forceCenter` to layout the network, while `drag` and `zoom` enable interaction. Data is fetched from a remote `miserables.json` file, and the SVG rendering includes links as lines and nodes as circles with text labels.

AI-generated description