igraph::sample_gnm and convert the output to
simcausal network matrix.
igraph::sample_gnm is derived from
Size of the network graph (number of nodes).
The total number of edges as a fraction of the sample size
A matrix with n rows, each row lists the indices of friends connected to that particular observation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.