Description Usage Arguments Details Value
Eigen decomposition of matrices associated with graphs
1 2 3 4 5 6 7 |
x |
adjacency matrix (or affiliation matrix) of a graph; must be a |
k |
number of eigenparis to extract (largest algebraic values for adjacency matrix and smallest algebraic values for Laplacian matrix) |
type |
string that is either |
check |
string of ether "all" (default), "isolates," "symmetric," or "none." Checks whether there are dangling nodes or whether |
set_diag_zero |
if |
Let A be the adjacency matrix associated with graph G. The Laplacian is given as
L = D - A
, where D is a diagonal matrix containing the degrees. Let I be the identity matrix of same dimensions as A. Then the different versions of normalized adjacency and Laplacian matrices are defined as follows:
Normalized (symmetric) adjacency matrix:
A_{s} = D^{-1/2}AD^{-1/2}
(Left) normalized adjacency matrix:
A_{l} = D^{-1}A
Normalized (symmetric) Laplacian:
L_{s} = I - A_{s}
(Left) normalized Laplacian:
L_{l} = I - A_{l}
returns the k
largest/smallest eigenpairs of the requested matrix. Eigenvalues, and their corresponding eigenvectors, are ordered in decreasing order for adjacency matrices and in increasing order for Laplacian matrices.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.