Creates a graph object representing the graph structure implied by a parameter matrix.
Gamma2graph(Gamma, tol = get_large_tol(), check = TRUE)Sigma2graph(Sigma, tol = get_large_tol(), k = NULL, full = FALSE, check = TRUE)
Theta2graph(Theta, tol = get_large_tol(), k = NULL, full = FALSE, check = TRUE)
partialMatrixToGraph(M)
An igraph::graph object.
Numeric \(d \times d\) variogram matrix.
Numeric scalar. Entries in the precision matrix with absolute value smaller than this are considered to be zero.
Whether to check the inputs and call ensure_matrix_symmetry_and_truncate_zeros
on the outputs.
Numeric \(d \times d\) or \((d-1) \times (d-1)\) covariance matrix.
NULL if the input/output matrix is \(\Sigma\)/\(\Theta\).
Else, an integer between 1 and d indicating the value of k in \(\Sigma^k\), \(\Theta^k\).
Logical. If TRUE and !is.null(k),
the input/output matrix is a \(d \times d\) matrix with the kth row filled with zeros.
Numeric \(d \times d\) or \((d-1) \times (d-1)\) precision matrix.
Partial matrix with NA entries indicating missing edges.
Other parameter matrix transformations:
Gamma2Sigma(),
chi2Gamma(),
par2Matrix()