build_laplacian | R Documentation |
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"))
adj_mat |
Symmetric adjacency matrix from which to build the Laplacian. |
type_lap |
Type of Laplacian to build.
One of |
The specified Laplacian matrix.
adj_mat <- matrix(c(1:9), nrow = 3) build_laplacian(adj_mat, "rw")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.