Spectral layout

From HandWiki
Revision as of 15:25, 6 February 2024 by SpringEdit (talk | contribs) (over-write)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Short description: Graph drawing using eigenvector coordinates

Spectral layout is a class of algorithm for drawing graphs. The layout uses the eigenvectors of a matrix, such as the Laplace matrix of the graph, as Cartesian coordinates of the graph's vertices.

The idea of the layout is to compute the two largest (or smallest) eigenvalues and corresponding eigenvectors of the Laplacian matrix of the graph and then use those for actually placing the nodes. Usually nodes are placed in the 2 dimensional plane. An embedding into more dimensions can be found by using more eigenvectors. In the 2-dimensional case, for a given node which corresponds to the row/column [math]\displaystyle{ i }[/math] in the (symmetric) Laplacian matrix [math]\displaystyle{ L }[/math] of the graph, the [math]\displaystyle{ x }[/math] and [math]\displaystyle{ y }[/math]-coordinates are the [math]\displaystyle{ i }[/math]-th entries of the first and second eigenvectors of [math]\displaystyle{ L }[/math], respectively.

References