R/getGraph.R

Defines functions getGraph

Documented in getGraph

getGraph <- function(D) {
  mat = abs(crossprod(D))
  diag(mat) = 0
  return(graph.adjacency(mat, mode=c("upper")))
}
statsmaths/genlasso documentation built on Jan. 1, 2023, 11:25 a.m.