rewireR {perturbR}R Documentation

Rewire graph by randomly assigning new values for a given degree of perturbation.

Description

Randomly rewires graphs by altering a specific number of edges using Bernoulli trials as described in "The weighted random graph model" by Garlaschelli, New Journal of Physics, 11, (2009), 073005. Only undirected, weigghted count matrices are considered here.

Usage

rewireR(sym.matrix, nperturb, dist)

Arguments

sym.matrix

A symmetric, sparse count matrix object.

nperturb

The number of edges to randomly alter.

dist

Option to rewire in a manner that retains overall graph weight regardless of distribution of edge weights. This option is invoked by putting any text into this field. Defaults to "NegBinom" for negative binomial.

Examples

rewireR(exampledata, nperturb=40, dist = "Normal")

[Package perturbR version 0.1.3 Index]