set_module_weights: Internal function to set the connection weights for a module

View source: R/modules.R

set_module_weightsR Documentation

Internal function to set the connection weights for a module

Description

Internal function to set the connection weights for a module

Usage

set_module_weights(module, weights)

Arguments

module

The 'network_module' object to modify.

weights

A vector or matrix of weights for each connetions. If a vector, its length must equal the number of connections in the module. If a matrix, it should be square with the number of columns equal to the number of nodes in the module; only the entries in the lower triangle that correspond to connections in the module will be used.

Value

The modified 'network_module' object.


SeqNet documentation built on Oct. 10, 2026, 5:06 p.m.