Usage
triangulate(object, ...)
## S3 method for class 'default':
triangulate(object, nLevels = NULL, result=NULL,
check=TRUE, ...)
triangulateMAT(amat, nLevels=rep(2, ncol(amat)), ...)
Arguments
object
An undirected graph represented either as a
graphNEL object, an igraph, 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", "igraph", "matrix",
"dgCMatrix". Default is the same as the type of object.
check
If TRUE (the default) it is checked whether the graph is
triangulated before doing the triangulation; gives a speed up
...
Additional arguments, currently not used.
amat
Adjacency matrix; a (dense) matrix, or a (sparse)
dgCMatrix.