Learn R Programming

simplifyNet (version 0.0.1)

Lap: Graph Laplacian calculator

Description

Find the graph Laplacian from a weighted adjacency matrix.

Usage

Lap(A)

Value

Graph Laplacian, L, of the class dgCMatrix.

Arguments

A

Weighted adjacency matrix.

Author

Alexander Mercier

Details

Intended as internal function.

Examples

Run this code
A = matrix(c(0,1,1,1,0,1,1,1,0), 3 ,3)
L = Lap(A)

Run the code above in your browser using DataLab