coNetwork: Random perturbations of a reference network

Description Usage Arguments Value Author(s) See Also Examples

View source: R/SimData.R

Description

Simulates a network from another network object by randomly perturbing a given number of edges.

Usage

1
2
3
coNetwork(graph,
          delta,
          name = "a co-network")

Arguments

graph

an object of class simone.network (typically generated by the rNetwork function).

delta

an integer giving the number of edges to randomly remove AND add to graph in order to obtain a randomly perturbed network.

name

a character string indicating the name of the perturbed network.

Value

Returns an object of class simone.network, see rNetwork for further details.

Author(s)

J. Chiquet

See Also

rNetwork, plot.simone.network.

Examples

1
2
3
4
5
6
## ancestor and child network generation
ancestor <- rNetwork(p = 20, pi = 20, name = "ancestor")
child    <- coNetwork(ancestor, delta = 1, name = "child")

# network comparison
plot(ancestor, child)


simone documentation built on May 19, 2017, 8:32 a.m.
Search within the simone package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.