Description Usage Arguments Value References Examples
Extremal distance (nd.extremal
) is a type of spectral distance measures on two graphs' graph Laplacian,
L := D-A
where A is an adjacency matrix and D_{ii}=∑_j A_{ij}. It takes top-k eigenvalues from graph Laplacian matrices and take normalized sum of squared differences as metric. Note that it is 1. non-negative, 2. separated, 3. symmetric, and satisfies 4. triangle inequality in that it is indeed a metric.
1 | nd.extremal(A, out.dist = TRUE, k = ceiling(nrow(A)/5))
|
A |
a list of length |
out.dist |
a logical; |
k |
the number of largest eigenvalues to be used. |
a named list containing
an (N\times N) matrix or dist
object containing pairwise distance measures.
an (N\times k) matrix where each row is top-k Laplacian eigenvalues.
jakobson_extremal_2002NetworkDistance
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.