Usage
triangulate(object, ...)
## S3 method for class 'graphNEL':
triangulate(object, nLevels = NULL, result="graphNEL", ...)
## S3 method for class 'matrix':
triangulate(object, nLevels = NULL, result="matrix", ...)
## S3 method for class 'Matrix':
triangulate(object, nLevels = NULL, result="Matrix", ...)
triangulateMAT(amat, nLevels=rep(2, ncol(amat)), result=NULL, ...)
Arguments
object
An undirected graph represented either as a
graphNEL
object, a (dense) matrix
, a (sparse) dgCMatrix
nLevels
The number of levels of the variables (nodes) when
these are discrete. Used in determining the triangulation using a
"minimum clique weight heuristic". See section 'details'.
result
The type (representation) of the result. Possible values
are "graphNEL"
, "matrix"
, "Matrix"
(the latter
meaning a sparse dgCMatrix
).
...
Additional arguments, currently not used.
amat
Adjacency matrix; a (dense) matrix
, or a (sparse)
dgCMatrix
.