shuffle_network_ws | R Documentation |
This function randomly rewires a directed network while preserving the total number of links but NOT the degree distribution. This is based on an approach described by Watts and Strogatz (1998) for small-world networks.
shuffle_network_ws(input_graph, delta = 100, directed = TRUE, weighted = TRUE)
input_graph |
A square adjacency matrix (directed, weighted or unweighted) or an igraph object. |
delta |
Number of rewiring attempts to perform. |
directed |
Logical, whether the network is directed (default: TRUE). |
weighted |
Logical, whether the network is weighted (default: TRUE). |
A shuffled adjacency matrix preserving the number of links but not degree distribution.
Watts, D. J., & Strogatz, S. H. (1998). Collective dynamics of 'small-world' networks. Nature, 393(6684), 440-442. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1038/30918")}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.