NetworkX

Previous topic

networkx.complete_graph

Next topic

networkx.circular_ladder_graph

networkx.complete_bipartite_graph

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