Description Usage Arguments Value Examples
Compute normalized version of graph Laplacian matrix
1 |
L |
graph Laplcian matrix |
normalized graph Laplacian matrix
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # Define exemplary adjacency matrix
p1 <- 10
p2 <- 40
p <- p1 + p2
A <- matrix(rep(0, p * p), p, p)
A[1:p1, 1:p1] <- 1
A[(p1 + 1):p, (p1 + 1):p] <- 1
vizu.mat(A, "adjacency matrix")
# Compute corresponding Laplacian matrix
L <- Adj2Lap(A)
vizu.mat(L, "Laplacian matrix")
# Compute corresponding Laplacian matrix - normalized
L.norm <- L2L.normalized(L)
vizu.mat(L.norm, "L Laplacian matrix (normalized)")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.