CreateRandomGraph: Create a random graph

View source: R/finalFunctions.R

CreateRandomGraphR Documentation

Create a random graph

Description

Returns a model graph with randomly sampled edges. Every possible edge has a probability to exist in the graph.

Usage

CreateRandomGraph(pathwayGenes, edgeProb = 0.5)

Arguments

pathwayGenes

vector of genes in the pathway

edgeProb

probability of random edge

Value

adjacency matrix

Examples

graph <- CreateRandomGraph(c("Ikk1", "Ikk2", "RelA"))

cbg-ethz/epiNEM documentation built on Nov. 9, 2023, 8:56 p.m.