graph.laplacian: Graph Laplacian

View source: R/structural.properties.R

graph.laplacianR Documentation

Graph Laplacian

Description

[Deprecated]

graph.laplacian() was renamed to laplacian_matrix() to create a more consistent API.

Usage

graph.laplacian(
  graph,
  normalized = FALSE,
  weights = NULL,
  sparse = igraph_opt("sparsematrices")
)

Arguments

graph

The input graph.

normalized

Whether to calculate the normalized Laplacian. See definitions below.

weights

An optional vector giving edge weights for weighted Laplacian matrix. If this is NULL and the graph has an edge attribute called weight, then it will be used automatically. Set this to NA if you want the unweighted Laplacian on a graph that has a weight edge attribute.

sparse

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


igraph/rigraph documentation built on May 19, 2024, 6:19 a.m.