CS 360 Assignment 7 - Force Directed Graph in d3
This visualization shows a node-link diagram of the Zachary Karate Club social network, with nodes representing members and edges representing their interactions. A force-directed layout positions the nodes as the simulation runs, with each node colored via a categorical scale and displaying its ID on mouseover. The code uses d3.forceSimulation with d3.forceLink, d3.forceManyBody, and d3.forceCenter to drive the layout, rendering SVG circles and lines that update on every tick. Data comes from the SOC-KARATE dataset loaded as CSV, with interaction handling and color assignment based on node IDs.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
original dataset found here
https://networkrepository.com/soc-karate.php
code for network data parsing and mouseover interaction sourced from these examples below
https://observablehq.com/@d3/force-directed-graph