network_simplification: Network Simplification

View source: R/network_simplification.R

network_simplificationR Documentation

Network Simplification

Description

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.

Usage

network_simplification(links, nodes, method = "cluster_fast_greedy")

Arguments

links

The links from the original network.

nodes

The nodes from the original network.

method

The clustering method used for network simplification (defaults to cluster_fast_greedy, but also accepts cluster_louvain, cluster_edge_betweenness, cluster_walktrap, cluster_label_prop, cluster_spinglass, cluster_leading_eigen, cluster_infomap). See igraph documentation for details.

Value

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).


masonyoungblood/DynCommPhylo documentation built on Aug. 6, 2022, 3:34 a.m.