grf_gp.utils.spectral module¶
- grf_gp.utils.spectral.get_normalized_laplacian(W, sparse=False)¶
Compute the normalized graph Laplacian.
- Parameters:
W – Symmetric adjacency matrix of shape
(n, n).sparse – Whether
Wshould be treated as a sparse matrix.
- Returns:
Normalized Laplacian matrix of shape
(n, n)with the same dense or sparse representation implied bysparse.