addLayerLinks: Generate a list of links between two layers with a...

Description Usage Arguments See Also

View source: R/toy_data_generation.R

Description

Generate a list of links between two layers with a probability of link between two nodes of p_link, with possibly at least one link to each node of the bottom layer

Usage

1
addLayerLinks(links, lup, ldown, p_link = 0.2, connect_bottom = TRUE)

Arguments

links

Initial list of links

lup

List of nodes of the upper layer

ldown

List of nodes of the lower layer

p_link

Probability of linking two nodes between the layer

connect_bottom

Whether each node of the lower layer must have at least on link

See Also

Other toy data generation: createSimulation, generateToyDesign, generateToyNetwork


molsysbio/STASNet documentation built on May 29, 2019, 5:45 a.m.