gnm_random_graph¶
-
gnm_random_graph
(n, m, seed=None, directed=False)[source]¶ Returns a Gn,m random graph.
In the Gn,m model, a graph is chosen uniformly at random from the set of all graphs with n nodes and m edges.
This algorithm should be faster than
dense_gnm_random_graph()
for sparse graphs.Parameters: See also