Overview
The Erdos-Renyi model creates graphs by flipping an independent random choice for each possible edge, or by choosing a fixed number of edges uniformly. It is a baseline model for studying random graph behavior.
Generates a random graph by independently including possible edges with fixed probability.
Compact metadata for implementation and discovery.
The Erdos-Renyi model creates graphs by flipping an independent random choice for each possible edge, or by choosing a fixed number of edges uniformly. It is a baseline model for studying random graph behavior.
Quick facts
Runtime and memory behavior at a glance.
Best
O(V + E)
Average
O((V + E) log V)
Worst
O(V^2 + E)
Space
O(V + E)
P(edge(u,v)) = pSamples every possible edge independently with the same probability.
Show sampling each possible edge independently with fixed probability on a small random graph generation example.
Erdos-Renyi graphs are useful baselines, not models of every real network.
What each reference supports for this entry.
Random graph reference for Erdos-Renyi G(n, p) and G(n, m) graph generation models.
Good next jumps from the relationship graph, ranked for useful discovery.
Randomness & Sampling · Core
Erdos-Renyi uses independent edges, while Barabasi-Albert uses preferential attachment.
Compare with thisErdos-Renyi uses independent edges, while Barabasi-Albert uses preferential attachment.
Watts-Strogatz preserves local ring structure before rewiring, unlike independent-edge Erdos-Renyi graphs.