View source: R/f09.misc.code.r
| nb8bn | R Documentation | 
returns the number of different Bayesian networks having n
labelled or not nodes. Non labelled nodes means that nodes are
exchangeable: A -> B is identical to A <- B.
nb8bn(n, label=FALSE)
| n | number of nodes. Must be less or equal to 18. | 
| label | Indicates if the nodes must be considered as labelled or not. | 
When not labelled nodes, the results were proposed by Sloane in 'the on line encyclopedy of integer sequences' (http://oeis.org/A003087). For labelled nodes, just the application of the recursive formula of Robinson.
Number of Bayesian networks
 nb8bn(5)
 nb8bn(5, TRUE);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.