rlca
returns a data.frame with factor sampled from an lca model
rlca(N, pi, theta)
The size of the graph to generate
A numeric vector of length K with clusters proportions (will be normalized to sum up to 1).
A list of size V
A list with fields:
x: the multi-graph adjacency matrix as an array
K: number of generated clusters
N: number of vertex
cl: vector of clusters labels
pi: clusters proportions
theta:
This function takes the desired graph size, cluster proportions and connectivity matrix as input and sample a graph accordingly together with the clusters labels.