View source: R/laplace_matrix.R
laplacian_matrix_signed | R Documentation |
The Laplacian of a signed graph.
laplacian_matrix_signed(g, norm = FALSE, sparse = FALSE)
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. |
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.
a numeric matrix
David Schoch
library(igraph)
g <- sample_islands_signed(3, 10, 5 / 10, 1)
laplacian_matrix_signed(g)
laplacian_matrix_signed(g, norm = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.