getPossibleParents: Get possible parents.

Description Usage Arguments Details Value

View source: R/graph-ops.R

Description

Given a sub-bn, get the possible parents of each node.

Usage

1
2
  getPossibleParents(bn, nonDescendantsList,
    descendantsList, numberOfNodes, change, maxIndegree)

Arguments

bn

A sub-bn

nonDescendantsList

The output of allNonDescendants

descendantsList

The output of allDescendants

numberOfNodes

The number of nodes of the bn

change

A numeric vector, containing the nodes whose parents are to be changed.

maxIndegree

Maximum indegree

Details

The possible parents for a node j that changes (a "change node") are those that are not descendants of any other change node, except for any change node that is an immediate parents of j in bn (the "sub-bn").

Value

A list of possible parents of each node


rjbgoudie/structmcmc documentation built on Nov. 3, 2020, 3:41 a.m.