cal_module {meconetcomp}R 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)


[Package meconetcomp version 0.5.0 Index]