This is a base class representing a node in a DAG. Is not intended to be used by a regular user. Developers only here!
Object of Node
Object of R6Class with methods for constructing a DAG.
parentsa list of parent nodes
childrena list of child nodes
namea tag name applied to the node
new(parents = list(), children = list(), name)creates a new Node with parent nodes, child nodes, and a name.
logDensity()calculate the log probability density/mass function evaluated at the current node value.
addChild(node)add node as a child. Returns node.
addParent(node)add node as a parent. Returns node.
removeParent(name)remove the parent node named name. Returns node.
removeChild(name)remove the child node named name. Returns node.