coNetwork {simone} | R Documentation |
Simulates a network from another network object by randomly perturbing a given number of edges.
coNetwork(graph, delta, name = "a co-network")
graph |
an object of class |
delta |
an integer giving the number of edges to randomly remove AND add to
|
name |
a character string indicating the name of the perturbed network. |
Returns an object of class simone.network
, see rNetwork
for
further details.
J. Chiquet
rNetwork
, plot.simone.network
.
## 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)