Skip to main content
100%

Force-Directed Hierarchy Graph with Node2Vec

✓ Published0🌍 Public
KKhanin Sisaengsuwanchai
Last edited Aug 14, 2023
Created on Jul 18, 2023

This example visualizes a large email communication network as a force-directed hierarchy graph, using a Node2Vec-inspired random-walk embedding to compute node similarities. The view displays color-coded clusters of nodes, with edges connecting related individuals, allowing exploration of community structures within the Enron dataset. Built with D3 v7, it employs `d3.forceSimulation`, `d3.forceLink`, `d3.forceManyBody`, and `d3.forceCenter` to position nodes, while zoom and drag interactions are enabled via `d3.zoom` and `drag`. The graph is rendered as SVG, with node colors derived from either precomputed community assignments or k-means clustering on the embeddings.

AI-generated description
MIT Licensed

Similar vizzes