Description Usage Arguments Details Value Examples
erdos_matrix
creates an adjacency matrix representation of an
undirected Erdos-Renyi random graph.
1 | erdos_matrix(N, avk)
|
N |
Number of vertices / nodes in the network. |
avk |
desired average degree of the network |
This functon generates an undirected random graph of size N
, each node
having average degree avk
. Self and repeated edges are not permitted
so if avk > (N - 1)
a fully connected network will always be returned.
adjacency matrix representation of the resultant network
1 | gr <- erdos_matrix(1000,10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.