Learn R Programming

mnda (version 1.0.9)

network_gen: Multiplex Network Generation

Description

Multiplex Network Generation

Usage

network_gen(N_nodes = 100, N_var_nodes = 5, N_var_nei = 90, noise_sd = 0.1)

Value

No return value, called to plot subgraphs

Arguments

N_nodes

number of nodes in the graph

N_var_nodes

number of nodes whose neighborhood should change from layer 1 to 2

N_var_nei

number of neighbors that should be changing from layer 1 to 2

noise_sd

the standard deviation of the noise added to the edge weights

Details

In this script we generate random pairs of gene co-expression networks, which are different only in a few (pre-set) number of nodes.

Examples

Run this code
myNet = network_gen(N_nodes = 100)
graphData = myNet[["data_graph"]]
varNodes = myNet[["var_node_set"]]

Run the code above in your browser using DataLab