Detect the modules

module_detect(
  go,
  method = "cluster_fast_greedy",
  n_node_in_module = 0,
  delete = FALSE
)

Arguments

go

an igraph object

method

cluster_method: "cluster_walktrap", "cluster_edge_betweenness", "cluster_fast_greedy", "cluster_spinglass"

n_node_in_module

transfer the modules less than n_node_in_module to "others"

delete

logical, delete others modules? default:FALSE, the others module will be "others".

Value

an igraph object

Examples

data("c_net")
module_detect(co_net) -> co_net_modu