Compute the commute-time distance between nodes in a graph
Source:R/commute_time.R
commute_time_distance.RdThis function computes the commute-time distance between nodes in a graph using either eigenvalue or pseudoinverse methods.
Usage
commute_time_distance(A, ncomp = nrow(A) - 1)Value
A list with the following components:
- eigenvectors
Matrix, eigenvectors of the matrix M
- eigenvalues
Vector, eigenvalues of the matrix M
- cds
Matrix, the computed commute-time distances
- gap
Numeric, the gap between the two largest eigenvalues
The returned object has class "commute_time" and "list".