create_random_DAG | R Documentation |
Creates a DAG according to given parameters.
create_random_DAG( node_num, prob, eff_min = -1, eff_max = 1, node_labels = paste0("n", as.character(seq_len(node_num))), max_par = 3 )
node_num |
Number of nodes |
prob |
Probability of creating an edge |
eff_min |
Lower bound for edge weights |
eff_max |
Upper bound for edge weights |
node_labels |
Node labels |
max_par |
Maximal number of parents |
graph
Martin Pirkl
dag <- create_random_DAG(30, 0.2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.