Skip to main content
100%

node-link diagrams vs. adjacency matrix

✓ Published0🌍 Public
Aaddword527
Last edited Nov 9, 2020
Created on Nov 7, 2020

The example contrasts node-link diagrams with adjacency matrices for a Dublin contact network of 410 nodes and links derived from a TSV dataset. A force-directed layout using `d3.forceSimulation` and `d3.forceLink` positions nodes, while the adjacency matrix renders as an SVG grid where cells are highlighted on node click via `d3.select` and stroke styling. Matrix rows and columns correspond to nodes, with row and column highlighting showing connections. The code employs D3 v6 selections, drag behavior, and the `schemeCategory10` color scale for group encoding.

AI-generated description
MIT Licensed

Similar vizzes