igraph::sample_gnp and convert the output to
simcausal network matrix.
Size of the network graph (number of nodes).
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.