perm.net.lk.w: Links weigths permutations

View source: R/perm.net.lk.w.R

perm.net.lk.wR Documentation

Links weigths permutations

Description

Permute network links weigths while keep same network structure.

Usage

perm.net.lk.w(M, nperm, progress = TRUE)

Arguments

M

a square adjacency matrix, or a list of square adjacency matrices.

nperm

an integer indicating the number of permutations wanted.

progress

a boolean indicating the visualization of the permutation process.

Details

Permute network links weigths while keep same network structure (density, modularity, binary global clustering coefficient).

Value

a list of matrices of length nperm + 1 with the first matrix beeing the original one and the other elements, the permuted ones.

Author(s)

Sebastian Sosa

Examples

test = perm.net.lk.w(sim.m, nperm = 2)
test[[1]][test[[1]] > 0] == test[[2]][test[[2]] > 0]

SebastianSosa/ant documentation built on Sept. 23, 2023, 7:06 a.m.