rewireR {perturbR} | R Documentation |
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.
rewireR(sym.matrix, nperturb, dist)
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. |
rewireR(exampledata, nperturb=40, dist = "Normal")