block by jalapic a78a6a08a99a9e98feef6a310472cd14

Erdős–Rényi Force Directed Graph

Full Screen

Created by Christopher Manning

Summary

This creates a graph with the number of nodes you specify and random edges based on the probability selected. The number indicates how many edges are connected to that node. Red nodes are not connected to any other nodes.

Inspired by this tweet from @ChicagoCDO

Nodes are added to the graph along the path of an Archimedean spiral. This is more pleasing than adding nodes at random locations. This also prevents new nodes from chaotically bouncing around since now they are always placed at a reasonable distance from each other.

Controls

References

forked from christophermanning‘s block: Erdős–Rényi Force Directed Graph

forked from FrissAnalytics‘s block: Erdős–Rényi Force Directed Graph

index.html