powered by
Build a Laplacian matrix (combinatorial Laplacian or random-walk Laplacian) from a symmetric (weighted) graph adjacency matrix.
build_laplacian(adj_mat, type_lap = c("comb", "rw"))
The specified Laplacian matrix.
Symmetric adjacency matrix from which to build the Laplacian.
Type of Laplacian to build. One of "comb" (combinatorial) or "rw" (random-walk).
"comb"
"rw"
adj_mat <- matrix(c(1:9), nrow = 3) build_laplacian(adj_mat, "rw")
Run the code above in your browser using DataLab