Description Usage Arguments Details Value Author(s) See Also Examples

Counts the number of choices of parents given a maximum in-degree restriction.

1 | ```
countGraphs(nodes, max.indeg)
``` |

`nodes` |
A positive integer specifying the number of nodes in the network. |

`max.indeg` |
A positive integer specifying the in-degree restriction. |

Nodes can be a parent to themselves. The number of possible networks is given by:

`nodes*countGraphs(nodes,max.indeg)`

Returns an integer given by *∑_{i=0}^m{n \choose i}*, where `nodes`

*=n* and `max.indegree`

*=m*

Simon Spencer

`interventionalInference`

, `interventionalDBN-package`

1 2 | ```
countGraphs(10,3) # 176, the number of possible parent sets for each node.
10*countGraphs(10,3) # 1760, the total number of possible networks.
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.