Warning

This documents an unmaintained version of NetworkX. Please upgrade to a maintained version and see the current NetworkX documentation.

# networkx.generators.intersection.k_random_intersection_graph¶

k_random_intersection_graph(n, m, k, seed=None)[source]

Returns a intersection graph with randomly chosen attribute sets for each node that are of equal size (k).

Parameters: n (int) – The number of nodes in the first bipartite set (nodes) m (int) – The number of nodes in the second bipartite set (attributes) k (float) – Size of attribute set to assign to each node. seed (integer, random_state, or None (default)) – Indicator of random number generation state. See Randomness.

gnp_random_graph(), uniform_random_intersection_graph()