Skip to main content
100%

Force Directed Graph

✓ Published2🌍 Public
Ppychen01
Last edited Nov 6, 2020
Created on Nov 5, 2020

This example pairs an interactive force-directed node-link diagram with an adjacency matrix, showing the same network data in two complementary views. Users can drag nodes in the graph to reposition them, click a node to highlight corresponding row/column links, or click matrix cells to highlight edges. The force layout uses `d3.forceSimulation` with `d3.forceLink`, `d3.forceManyBody`, and `d3.forceCenter`, while the matrix is rendered as SVG rectangles. Both views are synchronised via click events, with zoom support provided by a custom `d3.zoom` handler.

AI-generated description
MIT Licensed

Similar vizzes