Compute Markov diffusion kernel via eigen decomposition
Source:R/diffusion.R
compute_diffusion_kernel.RdEfficient computation of the Markov diffusion kernel for a graph represented by a sparse adjacency matrix. For large graphs, uses RSpectra to compute only the leading k eigenpairs of the normalized transition matrix.
Arguments
- A
Square sparse adjacency matrix (dgCMatrix) of an undirected, weighted graph with non-negative entries.
- t
Diffusion time parameter (positive scalar).
- k
Number of leading eigenpairs to compute. If NULL, performs full eigendecomposition.
- symmetric
If TRUE (default), uses symmetric normalization to guarantee real eigenvalues.