Return a random graph G_{n,p}.
Choses each of the possible [n(n-1)]/2 edges with probability p. This is the same as binomial_graph and erdos_renyi_graph.
Sometimes called Erdős-Rényi graph, or binomial graph.
Parameters: | n : int
p : float
create_using : graph, optional (default Graph)
seed : int, optional
|
---|
See also
Notes
This is an O(n^2) algorithm. For sparse graphs (small p) see fast_gnp_random_graph.
References
[R61] |
|
[R62] |
|