laplacian: Calculates graph Laplacian given adjacency and degree...

Description Usage Arguments Value Examples

View source: R/specc.R

Description

Calculates graph Laplacian given adjacency and degree matrices

Usage

1
laplacian(adjacency.mat, degree.mat)

Arguments

adjacency.mat

Adjacency matrix of graph

degree.mat

Matrix with degrees of vertices on diagonal

Value

Laplacian matrix = degree - adjacency

Examples

1
2
3
adjacency.mat <- adjacency(pairwiseDistance(iris[1:50,1:4]), similarity(iris[1:50,1:4]),2)
degree.mat <- degree(adjacency.mat)
laplacian.mat <- laplacian(adjacency.mat, degree.mat)

alyssajs/CS599 documentation built on June 17, 2021, 6:29 p.m.