![](https://upload.wikimedia.org/wikipedia/commons/thumb/d/d7/Spectral_graph_drawing_of_small_world_graph.svg/179px-Spectral_graph_drawing_of_small_world_graph.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/9/94/Spring_graph_drawing_of_small_world_graph.svg/180px-Spring_graph_drawing_of_small_world_graph.svg.png)
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 in the (symmetric) Laplacian matrix of the graph, the and -coordinates are the -th entries of the first and second eigenvectors of , respectively.
References
[edit]- Beckman, Brian (1994), Theory of Spectral Graph Layout, Tech. Report MSR-TR-94-04, Microsoft Research.
- Koren, Yehuda (2005), "Drawing graphs by eigenvectors: theory and practice", Computers & Mathematics with Applications, 49 (11–12): 1867–1888, doi:10.1016/j.camwa.2004.08.015, MR 2154691.