createGraph: Simulate Graph

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/createGraph.R

Description

Simulate domain knowledge graph.

Usage

1
2
createGraph(subtype1.feats = 1:5, subtype2.feats = 6:10, subtype3.feats = 11:15, 
n.interactions = 1e+06, n.features = 10000)

Arguments

subtype1.feats

Index of features used to define subtype 1.

subtype2.feats

Index of features used to define subtype 2.

subtype3.feats

Index of features used to define subtype 3.

n.interactions

Number of pairwise interactions to simulate.

n.features

Number of features to simulate

Value

Returns a data frame representation of a graph. The first two columns represent graph nodes and the third column represents the edge weights between nodes.

All pairwise combinations of subtype1.feats have an edge weight of 1.

All pairwise combinations of subtype2.feats have an edge weight of 1.

All pairwise combinations of subtype3.feats have an edge weight of 1.

All other pairwise combinations have an edge weight uniformly distributed between 0 and 1.

Author(s)

Michelle Saul

References

ADD REFERENCE

See Also

createData

Examples

1
2
3
# Toy Example 
graph <- createGraph(subtype1.feats = 1:5, subtype2.feats = 6:10, subtype3.feats = 11:15, 
n.interactions = 100, n.features = 20)

FamilyRank documentation built on Feb. 5, 2021, 9:05 a.m.