rewireR: Rewire graph by randomly assigning new values for a given...

Description Usage Arguments Examples

View source: R/rewireR.R

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

1
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

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

GatesLab/evalClust documentation built on Nov. 17, 2019, 3:59 a.m.