createGraph {FamilyRank} | R Documentation |
Simulate Graph
Description
Simulate domain knowledge graph.
Usage
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
Examples
# Toy Example
graph <- createGraph(subtype1.feats = 1:5, subtype2.feats = 6:10, subtype3.feats = 11:15,
n.interactions = 100, n.features = 20)
[Package FamilyRank version 1.0 Index]