Permute node labels of a network

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