Learn R Programming

interventionalDBN (version 1.2.2)

nxt: Produces the next set of parents from an existing set of parents (internal).

Description

A function to find the next parent set in the sequence.

Usage

nxt(g, max.indeg)

Arguments

g
A binary vector of length nodes
max.indeg
The maximum in-degree of the network

Value

nodes

See Also

countGraphs,interventionalDBN-package

Examples

Run this code
g<-rep(0,7)
for (i in 1:countGraphs(7,3)) {
  cat(g,"\n")
  g<-nxt(g,3)
}

Run the code above in your browser using DataLab