| sim_dag | R Documentation |
Simulates a random directed acyclic graph adjacency (DAG) matrix with n nodes
and either m edges, edge creation probability p, or edge creation
probability range p_range.
sim_dag(n, m = NULL, p = NULL)
n |
The number of nodes. |
m |
Integer in |
p |
Numeric in |
The sampled caugi object.
caugi::generate_graph()
# Simulate a DAG with 5 nodes and 3 edges
sim_dag(n = 5, m = 3)
# Simulate a DAG with 5 nodes and edge creation probability of 0.2
sim_dag(n = 5, p = 0.2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.