Usage
triangulate(object, ...)
## S3 method for class 'graphNEL':
triangulate(object, method="mcwh", nLevels = rep(2,length(nodes(object))),
result="graphNEL",...)
## S3 method for class 'matrix':
triangulate(object, method="mcwh", nLevels = rep(2,ncol(object)), result="matrix",...)
## S3 method for class 'Matrix':
triangulate(object, method="mcwh", nLevels = rep(2,ncol(object)), result="Matrix",...)
triangulateMAT(amat, method="mcwh", nLevels=rep(2,ncol(amat)), result=NULL, ...)
Arguments
object
An undirected graph represented either as a
graphNEL
object, a (dense) matrix
, a (sparse) dgCMatrix
method
Triangulation method. Only valid option is "mcwh" (minimum clique
weight heuristic). See section 'details'.
nLevels
Typically, 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. Same possible
representations as the input graph, and default is the same type as
the input graph.
...
Additional arguments, currently not used.
amat
Adjacency matrix; a (dense) matrix
, or a (sparse)
dgCMatrix
.