Sample planted partition model with degree variability (Piexoto 2020)
sample_dcppm.Rd
This function samples graphs from a stochastic block model by building a
block adjacency matrix from the Parameters N, k, B and c and accounting
for a exponential degree sequence inside each block controlled by k_coef
.
Arguments
- N
Number of vertices in the graph.
- c
A number between 0 and 1 controlling the
- k
The average degree of a vertex.
- B
The number of blocks.
- k_coef
A number describing the degree variability within each block. A value of 0 means that all vertices have the same expected degree.#'
- directed
Logical scalar, whether to generate a directed graph.
- loops
Logical scalar, whether self-loops are allowed in the graph.