laplacian_matrix_signed: Signed Graph Laplacian

View source: R/laplace_matrix.R

laplacian_matrix_signedR Documentation

Signed Graph Laplacian

Description

The Laplacian of a signed graph.

Usage

laplacian_matrix_signed(g, norm = FALSE, sparse = FALSE)

Arguments

g

igraph object with a sign edge attribute.

norm

Whether to calculate the normalized Laplacian. See definitions below.

sparse

Logical scalar, whether to return the result as a sparse matrix. The Matrix package is required for sparse matrices.

Details

See laplacian_matrix of igraph for more details. In the signed case, D is a diagonal matrix containing the absolute values of row sums of the signed adjacency matrix.

Value

a numeric matrix

Author(s)

David Schoch

Examples

library(igraph)
g <- sample_islands_signed(3, 10, 5 / 10, 1)
laplacian_matrix_signed(g)
laplacian_matrix_signed(g, norm = TRUE)

signnet documentation built on Sept. 9, 2023, 1:06 a.m.