aryagraph.generators.classic.complete_bipartite_graph#

aryagraph.generators.classic.complete_bipartite_graph(n1: int, n2: int, *, directed: bool = False) → Graph[source]#

Complete bipartite graph K_{n1,n2}.

Nodes 0 … n1-1 carry bipartite=0 and n1 … n1+n2-1 carry bipartite=1; directed arcs go from side 0 to side 1.