Description Usage Arguments Value Examples
Enumerate (ie make a list of, not just count) the entire space of Bayesian Networks models, on a given number of nodes.
1 2 3 | enumerateBNSpace(n, allowCyclic = F, banned =
vector("list", n), required = vector("list", n),
maxIndegree = n - 1, multicore = F, check = T)
|
n |
The number of nodes |
allowCyclic |
A logical indicating whether cyclic directed graphs should be filtered out. |
banned |
A list of length |
required |
A list of length |
maxIndegree |
The maximum indegree of all nodes. A numeric of length 1. |
multicore |
A logical specifying whether to use mclapply. |
check |
Should the input be checked for validity? |
A parental.list
including ALL the directed acyclic
graphs with n
nodes.
1 2 3 4 5 | enumerateBNSpace(3)
enumerateBNSpace(3, banned = list(c(), 1, c()))
x <- enumerateBNSpace(3, allowCyclic = TRUE)
filterCyclic(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.