| cal_laplacian | R Documentation |
Compute unnormalized, normalized, or random-walk Laplacian from an adjacency matrix.
cal_laplacian(W, type = c("unnormalized", "normalized", "randomwalk"))
W |
A square adjacency matrix (can be dense or sparse). |
type |
Type of Laplacian to compute: "unnormalized", "normalized", or "randomwalk". |
Laplacian matrix of the same class as input.
W <- matrix(c(0, 1, 1, 1, 0, 1, 1, 1, 0), nrow = 3)
cal_laplacian(W, type = "normalized")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.