add.undirected.edge: Add undirected edge to a 'bnlearn' object.

Description Usage Arguments Details Value

View source: R/bnlearn.R

Description

Adding undirected edges is not an exported function in bnlearn, so this function exposes this functionality.

Usage

1
2
  add.undirected.edge(x, from, to, check.cycles, update =
  T, debug = F)

Arguments

x

A 'bnlearn' object, of class bn.

from

A character string, the label of a node.

to

A character string, the label of a node.

check.cycles

a boolean value. If TRUE the graph is tested for acyclicity; otherwise the graph is returned anyway.

update

A logical

debug

a boolean value. If TRUE a lot of debugging output is printed; otherwise the function is completely silent.

Details

This bridge to bnlearn can be temperamental because bnlearn also has an object called bn.

Value

A new bnlearn object


rjbgoudie/parental documentation built on May 27, 2019, 9:11 a.m.