nocad.viz.bipartite_layout#

nocad.viz.bipartite_layout(adj, matching=None, gap=1.0)[source]#

Two-column layout of the bipartite representation with matched edges horizontal.

Returns:
layoutBunch with out_pos and in_pos (N, 2): positions of \(x_j^+\) and

\(x_i^-\), and the matching used.