View source: R/network_simplification.R
| network_simplification | R Documentation |
Extract the largest connected component of the original network and simplify it using the fast greedy modularity optimization algorithm into a network where each node is a population and each link is the number of individuals moving between populations.
network_simplification(links, nodes, method = "cluster_fast_greedy")
links |
The links from the original network. |
nodes |
The nodes from the original network. |
method |
The clustering method used for network simplification (defaults to |
A list with links and nodes, as well as the proportion of communities included in the largest connected component and the modularity of the simplified network. The links are directed and weighted. The nodes are in the format populationID_year, where a single population can persist across multiple years (e.g. 24_1975 -> 24_1976 -> 24_1977).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.