Description Usage Arguments Details Functions See Also
Changes the output of the main algorithms to be compatible with other packages in the R ecosystem.
1 2 3 4 5 | resetGraphPackage(coerce = TRUE)
setGraphPackage(pkg, matchPlot = TRUE, coerce = FALSE)
getGraphPackage()
|
coerce |
If |
pkg |
The desired package; default value is |
matchPlot |
Force the underlying plotting mechanism to match the selected package (see setPlotPackage). |
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.
resetGraphPackage
: Reset all data to default edgeList
format and set graph package back to default "sparsebn"
.
getGraphPackage
: Returns the current choice of graph package ( NULL
corresponds to no selection)
setPlotPackage
, getPlotPackage
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.