Learn R Programming

SeqNet (version 1.1.3)

get_network_modules: Get a list of modules from the network

Description

Get a list of modules from the network

Usage

get_network_modules(network)

Arguments

network

A 'network' object.

Value

A list whose length is the number of modules in the network; each element is a vector containing the indicies of the nodes that belong to that module.

Examples

Run this code
# NOT RUN {
set.seed(12345)
# Create a random network of 50 nodes and modules of sizes between 5-20.
nw <- random_network(50, n_modules = 5, min_module_size = 5, 
                     max_module_size = 20, avg_module_size = 10,
                     sd_module_size = 5)
get_network_modules(nw) # Indicies of nodes contained in each module.
# }

Run the code above in your browser using DataLab