graph-toolkit
    Preparing search index...

    Function spectralEmbedding

    • Embeds each vertex with its entries in the Laplacian eigenvectors of the smallest non-trivial eigenvalues (Laplacian eigenmaps). Dense $O(n^3)$: meant for graphs up to a few hundred vertices. Needs an undirected graph; on a disconnected graph or a repeated eigenvalue the eigenvectors are not unique. Throws GraphError unless 1 <= dimensions < n.

      Parameters

      Returns ReadonlyMap<VertexId, readonly number[]>