Description Usage Arguments Value Author(s) References See Also Examples
Simulate domain knowledge graph.
1 2 | createGraph(subtype1.feats = 1:5, subtype2.feats = 6:10, subtype3.feats = 11:15,
n.interactions = 1e+06, n.features = 10000)
|
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 |
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.
Michelle Saul
ADD REFERENCE
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.