Import and export networks from the graph package
Convert bn
and bn.fit
objects to graphNEL
and
graphAM
objects and vice versa.
## S3 method for class 'graphNEL' as.bn(x, ..., check.cycles = TRUE) ## S3 method for class 'graphAM' as.bn(x, ..., check.cycles = TRUE) ## S3 method for class 'bn' as.graphNEL(x) ## S3 method for class 'bn.fit' as.graphNEL(x) ## S3 method for class 'bn' as.graphAM(x) ## S3 method for class 'bn.fit' as.graphAM(x)
x |
an object of class |
... |
extra arguments from the generic method (currently ignored). |
check.cycles |
a boolean value. If |
An object of the relevant class.
Marco Scutari
## Not run: library(graph) a = bn.fit(hc(learning.test), learning.test) b = as.graphNEL(a) c = as.bn(b) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.