Fork of Graph
✓ Published0🌍 Public
This example shows a hand-coded social network graph with ten named nodes and sixteen links, rendered directly to an HTML canvas element. The visualization displays relationships between people like Alice, Bob, and Charlie, using fixed node coordinates and static connections defined in JavaScript arrays. The code uses the native Canvas 2D API, specifically calling `ctx.arc()` for nodes, `ctx.lineTo()` for links, and `ctx.fillText()` for labels, with a light blue background and gray edges. Node positions are hardcoded rather than computed by a layout algorithm, and the canvas dimensions are adjusted dynamically based on the maximum node coordinates before drawing.
AI-generated descriptionCSCE 5320.002 Scientific Data Visualization (ICE-8)
Part-2 Social Network Graph
- Pavan Krishna Yarlagadda (11600263)
MIT Licensed