hypergraph_laplacian_matrix: Laplacian Matrix

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/laplacian.R

Description

The Laplacian of a hypergraph is D-A, where A is the (weighted) adjacency matrix, and D is the row-sums.

Usage

1

Arguments

h

a hypergraph.

normalize

logical. Whether to normalize the Laplacian matrix.

Details

The Laplacian is D-A, where D is the row sums of the adjacency matrix A. If normalize is TRUE, then the normalized version is returned.

Value

a (sparse) matrix.

Author(s)

David J. Marchette dmarchette@gmail.com

See Also

laplacian_matrix.

Examples

1
2
3
 h <- hypergraph_from_edgelist(list(1:4,2:5,c(3,5,7,8,10),c(2,9),c(2:3,6,10)))
 L <- hypergraph_laplacian_matrix(h)
 Ln <- hypergraph_laplacian_matrix(h,normalize=TRUE)

HyperG documentation built on March 4, 2021, 5:06 p.m.