sgtl.random#

Provides methods for generating random graphs.

Includes methods for generating Erdos-Renyi graphs and graphs from the stochastic block model.

Functions

erdos_renyi(n, p)

Generate a random graph from the Erdos-Renyi model.

sbm(cluster_sizes, prob_mat_q[, directed, ...])

Generate a graph from the general stochastic block model.

sbm_equal_clusters(n, k, prob_mat_q[, directed])

Generate a graph with equal cluster sizes from the stochastic block model.

ssbm(n, k, p, q[, directed])

Generate a graph from the symmetric stochastic block model.