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
Deprecated, use
normalizationinstead.- weights
An optional vector giving edge weights for weighted Laplacian matrix. If this is
NULLand the graph has an edge attribute calledweight, then it will be used automatically. Set this toNAif you want the unweighted Laplacian on a graph that has aweightedge attribute.- sparse
Logical scalar, whether to return the result as a sparse matrix. The
Matrixpackage is required for sparse matrices.
Related documentation in the C library
get_laplacian(), get_laplacian_sparse(), is_directed(), vcount(), edges(), get_eids(), ecount()
