init_graph | R Documentation |
init_graph takes number of nodes (n) and average degree (deg) to generate a random graph.
init_graph(n, deg) ## S4 method for signature 'numeric,numeric' init_graph(n, deg)
n |
Number of nodes in the network |
deg |
Average degree in the network |
Returns an unweighted (binary) adjacency matrix, where each cell represents the presence (1) or absence (0) of an interaction between the row and the column individual.
init_graph(n = 10, deg = 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.