cal_module: Assign modules to each network

View source: R/cal_module.R

cal_moduleR Documentation

Assign modules to each network

Description

Calculating modularity of networks and assign the modules to nodes for each network.

Usage

cal_module(
  network_list,
  undirected_method = "cluster_fast_greedy",
  directed_method = "cluster_optimal",
  ...
)

Arguments

network_list

a list with multiple networks; all the networks should be trans_network object created from trans_network class of microeco package.

undirected_method

default "cluster_fast_greedy"; the modularity algorithm for undirected network; see cal_module function of trans_network class for more algorithms.

directed_method

default 'cluster_optimal'; the modularity algorithm for directed network.

...

other parameters (except for method) passed to cal_module function of trans_network class.

Value

list, with module attribute in nodes of each network

Examples

data(soil_amp_network)
soil_amp_network <- cal_module(soil_amp_network)


meconetcomp documentation built on Nov. 18, 2023, 5:06 p.m.