NetworkX

Previous topic

networkx.generators.classic.complete_graph

Next topic

networkx.generators.classic.circular_ladder_graph

networkx.generators.classic.complete_bipartite_graph

networkx.generators.classic.complete_bipartite_graph(n1, n2, create_using=None)

Return the complete bipartite graph K_{n1_n2}.

Composed of two partitions with n1 nodes in the first and n2 nodes in the second. Each node in the first is connected to each node in the second.

Node labels are the integers 0 to n1+n2-1