R/laplaceMatrix.R

Defines functions laplaceMatrix

Documented in laplaceMatrix

laplaceMatrix <- function(g) {
  stopifnot(.validateGraph(g))
  adj.mat <- adjacencyMatrix(g)
  D <- diag(rowSums(adj.mat, na.rm = FALSE, dims = 1))
  Lap_Mat <- D - adj.mat
  Lap_Mat
}

Try the QuACN package in your browser

Any scripts or data that you put into this service are public.

QuACN documentation built on May 2, 2019, 8:18 a.m.