Learn R Programming

mdpeer (version 1.0.1)

L2L.normalized: Compute normalized version of graph Laplacian matrix

Description

Compute normalized version of graph Laplacian matrix

Usage

L2L.normalized(L)

Arguments

L
graph Laplcian matrix

Value

normalized graph Laplacian matrix

Examples

Run this code
# 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)")

Run the code above in your browser using DataLab