@graphty/layout / index / spectral
Function: spectral()
spectral(
s,options?):LayoutResult
Defined in: indexed/spectral.ts:144
Nodes placed by the Laplacian's eigenvectors as power iteration finds them (see spectralRows), one component per dimension, rescaled so the farthest node is scale from the centre.
Parameters
s
GraphSnapshot
the snapshot; a directed one is read as its undirected derived graph
options?
CommonLayoutOptions = {}
seed fixes the start vectors
Returns
the layout