setGraphPackage: Change data structure for representing graphs internally

Description Usage Arguments Details Functions See Also

View source: R/sparsebnUtils-options.R

Description

Changes the output of the main algorithms to be compatible with other packages in the R ecosystem.

Usage

1
2
3
4
5

Arguments

coerce

If TRUE, then all sparsebnFit and sparsebnPath objects in the global environment will be coerced to be compatible with the selected package. This will overwrite your existing data.

pkg

The desired package; default value is NULL corresponding to edgeList. Possible values are "sparsebn", "igraph", "graph", "bnlearn", and "network".

matchPlot

Force the underlying plotting mechanism to match the selected package (see setPlotPackage).

Details

sparsebn is compatible with four different data structures for representing graphs: edgeList (default), graphNEL-class (from the graph package), igraph (from the igraph package), and network (from network-package). edgeList is provided by default in sparsebn, however, the other three options require that extra packages are installed.

Functions

See Also

setPlotPackage, getPlotPackage


itsrainingdata/sparsebnUtils documentation built on April 2, 2018, 8:27 p.m.