Description Usage Arguments Value Examples
View source: R/sim_adjacency.R
sim_deg_conn
creates a randomly generated undirected- unweighted-
adjacency matrix with different degree of connectedness
1 | sim_deg_conn(n, p = 0.5)
|
n |
Positive integer, number of nodes in the network |
p |
Positive double, probability of a node having a connection with another.
Default is |
Returns an n x n adjacency matrix A.mat
1 2 | sim_deg_conn(10) # edge exists between 2 nodes with probability 0.5
sim_deg_conn(10, p = 0.1) # edge exists between 2 nodes with probability 0.1
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.