Return a random graph G_{n,p} (Erdős-Rényi graph, binomial graph).
Chooses each of the possible edges with probability p.
This is also called binomial_graph and erdos_renyi_graph.
Parameters : | n : int
p : float
seed : int, optional
directed : bool, optional (default=False)
|
---|
See also
Notes
This is an O(n^2) algorithm. For sparse graphs (small p) see fast_gnp_random_graph for a faster algorithm.
References
[R229] |
|
[R230] |
|