build_laplacian {motifcluster} | R Documentation |
Build a Laplacian matrix
Description
Build a Laplacian matrix (combinatorial Laplacian or random-walk Laplacian) from a symmetric (weighted) graph adjacency matrix.
Usage
build_laplacian(adj_mat, type_lap = c("comb", "rw"))
Arguments
adj_mat |
Symmetric adjacency matrix from which to build the Laplacian. |
type_lap |
Type of Laplacian to build.
One of |
Value
The specified Laplacian matrix.
Examples
adj_mat <- matrix(c(1:9), nrow = 3)
build_laplacian(adj_mat, "rw")
[Package motifcluster version 0.2.3 Index]