get_edge_weights_from_module: Get edge weights.

Description Usage Arguments Value Examples

View source: R/modules.R

Description

Get edge weights.

Usage

1

Arguments

module

The 'network_module' object to get edge weights for.

Value

A vector containing the weights of each edge. If the edges are unweighted, then a vector of 1's is returned. If there are no edges, in the module, then NULL is returned.

Examples

1
2
3
4
nw <- random_network(10)
nw <- gen_partial_correlations(nw)
module <- nw$modules[[1]]
get_edge_weights_from_module(module)

SeqNet documentation built on July 9, 2021, 9:08 a.m.