R/convert_adj_to_matrix.R

Defines functions convert_adj_to_matrix

Documented in convert_adj_to_matrix

#' @title Convert an adjacency matrix to plain matrix
#' @description This function takes an adjacency matrix and
#' transforms it into a plain matrix
#' @param adj the adjacency matrix
#' @author Ilias Moutsopoulos and Sergio Vasquez
#' @export

convert_adj_to_matrix <- function(adj){
  assert_adjacency(adj)
  x <- adj[]
  attr(x, "known_symmetric") <- NULL
  attr(x, "known_binary") <- NULL
  x
}
drostlab/edgynode documentation built on March 29, 2024, 10:36 a.m.