Skip to main content

Module full_bipartite

Module full_bipartite 

Source
Expand description

Complete bipartite graph constructor (ALGO-CN-035).

Counterpart of igraph_full_bipartite() in references/igraph/src/misc/bipartite.c:448-528.

A complete bipartite graph K_{n1, n2} has two partitions of sizes n1 and n2 with every possible edge between the two partitions (no edges within a partition).

Vertices [0, n1) form partition 1 and vertices [n1, n1+n2) form partition 2.

Direction is governed by BipartiteMode:

Edge counts:

  • Undirected / directed Out / directed In: n1 × n2.
  • Directed All: 2 × n1 × n2.

Re-exports§

pub use crate::algorithms::games::bipartite::BipartiteMode;

Structs§

FullBipartite
Bundled return type of full_bipartite.

Functions§

full_bipartite
Build the complete bipartite graph K_{n1, n2}.