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

Description Usage Arguments Value Author(s) See Also Examples

View source: R/nxt.R

Description

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

Usage

1
nxt(g, max.indeg)

Arguments

g

A binary vector of length nodes

max.indeg

The maximum in-degree of the network

Value

A different binary vector of length nodes

Author(s)

Simon Spencer

See Also

countGraphs,interventionalDBN-package

Examples

1
2
3
4
5
g<-rep(0,7)
for (i in 1:countGraphs(7,3)) {
  cat(g,"\n")
  g<-nxt(g,3)
}

interventionalDBN documentation built on May 30, 2017, 8:24 a.m.