Compute sparse α-lazy random-walk normalized graph Laplacian `L = I - α D⁻¹ W`
Source:R/spectral_graph_construction.R
compute_graph_laplacian_sparse.Rd
Compute sparse α-lazy random-walk normalized graph Laplacian `L = I - α D⁻¹ W`
Arguments
- W_sparse
A sparse, symmetric adjacency matrix (`Matrix::dgCMatrix`, `V_p x V_p`). Symmetry is verified using
Matrix::isSymmetric()
(tolerance1e-8
); the function stops with an error if the matrix is not symmetric.- alpha
Numeric, the laziness parameter. Default is 0.93. Will be clamped to `[epsilon, 1]` range if outside `(0,1]`.
- degree_type
Character string, how to calculate node degrees if `W_sparse` has negative values. One of `"abs"` (default, sum of absolute weights), `"positive"` (sum of positive weights only), or `"signed"` (sum of raw weights). Documented for clarity.