nodeperm: Permute nodes

View source: R/nodeperm.R

nodepermR Documentation

Permute nodes

Description

Permute node labels of a network

Usage

nodeperm(mat, mode = "directed", weighted = TRUE, diag = FALSE)

Arguments

mat

Network matrix

mode

Character string; How igraph should interpret matrix; default is 'directed' – other common choice is 'undirected'

weighted

Logical; if TRUE (default), network is weighted; if FALSE, network is not weighted

diag

Logical; if FALSE (default), self-nominations are removed; if TRUE, network will include self-nominations

Value

An igraph object with the same underlying structure as original network, but randomized node labels


kturetsky/sneasy documentation built on Aug. 29, 2022, 7:11 a.m.