gnmk_random_graph¶
-
gnmk_random_graph
(n, m, k, seed=None, directed=False)[source]¶ Return a random bipartite graph G_{n,m,k}.
Produces a bipartite graph chosen randomly out of the set of all graphs with n top nodes, m bottom nodes, and k edges.
Parameters: Examples
from networkx.algorithms import bipartite G = bipartite.gnmk_random_graph(10,20,50)
See also
gnm_random_graph()
Notes
This function is not imported in the main namespace. To use it you have to explicitly import the bipartite package.
If k > m * n then a complete bipartite graph is returned.
This graph is a bipartite version of the \(G_{nm}\) random graph model.