shuffle_infomap: Shuffle a network and return linklists for Infomap (beta)

View source: R/shuffle_infomap.R

shuffle_infomapR Documentation

Shuffle a network and return linklists for Infomap (beta)

Description

Shuffles the network according to a predefined algorithm and return a list of linklists that can be analyzed by Infomap.

Usage

shuffle_infomap(x, shuff_method = "r00", nsim = 1000, ...)

Arguments

x

An object of class infomap_link_list or monolayer.

shuff_method

Method to shuffle the network. See details.

nsim

How many shuffled networks to create?

...

Additional parameters for shuffling passed to simulate, such as burnin. See nullmodel in package vegan.

Details

This function is used internally by run_infomap_monolayer, but can also be run independently Currently only supports bipartite networks and shuffling methods from the vegan package as defined in vegan::commsim.

Value

A list of linklists that can be used by Infomap.

See Also

Functions commsim, nullmodel in package vegan.

Examples

network_object <- create_monolayer_network(bipartite::memmott1999, 
bipartite = TRUE, directed = FALSE, group_names = c('A','P'))

shuffled <- shuffle_infomap(network_object, shuff_method='curveball', 
nsim=50, burnin=2000)


Ecological-Complexity-Lab/infomap_ecology_package documentation built on June 6, 2024, 5:28 a.m.