spec_repr | R Documentation |
Provides a spectral representation of the network (with regularization) based on the adjacency or Laplacian matrices
spec_repr(A, K, type = "lap", tau = 0.25, ignore_first_col = FALSE)
A |
Adjacency matrix (n x n) |
K |
Number of communities |
type |
("lap" | "adj" | "adj2") Whether to use Laplacian or adjacency-based spectral clustering |
tau |
Regularization parameter for the Laplacian |
ignore_first_col |
whether to ignore the first eigen vector |
The n x K matrix resulting from a spectral embedding of the network into R^K
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.