aryagraph.generators.random.planted_partition#

aryagraph.generators.random.planted_partition(l: int, k: int, p_in: float, p_out: float, seed: int | Generator | None = None, *, directed: bool = False) → Graph[source]#

Planted partition: l groups of k nodes, linked with p_in inside a group and p_out across.

A stochastic_block_model() with a constant diagonal; nodes carry block.