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 = F)

Arguments

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

Value

The n x K matrix resulting from a spectral embedding of the network into R^K