Skip to main content
100%

Random Graph Generator

✓ Published0🌍 Public
MMNoichl
Last edited Mar 7, 2018
Created on Mar 7, 2018

This interactive visualization generates a random graph with 80 nodes and 80 links each time the user clicks the canvas. The nodes are sized and colored according to their degree (number of neighbors), using an ordinal color scale mapped from a blue-to-red gradient. The graph is laid out using the d3.layout.force force-directed algorithm, which animates the nodes and links as they settle into position. The implementation uses D3.js (v3) with SVG circles and lines, and each new graph replaces the previous one through transitions that adjust node radius, fill color, and opacity over 800 milliseconds.

AI-generated description

Random Graph Generator

Click anywhere to generate a new random graph.

  • The nodes are colored by the number of their neighbors.
  • Nodes with higher number of neighbours are bigger.

forked from <a href='http://bl.ocks.org/erkal/'>erkal</a>'s block: <a href='http://bl.ocks.org/erkal/9746513'>Random Graph Generator</a>

mit Licensed

Similar vizzes