Layouts#
Layout engines return a Layout; compute dispatches by name.
Dispatcher#
Compute a layout by name (the entry point used by |
|
The method |
Layout result#
Node positions, optional edge routes, and provenance. |
|
Arrange several component layouts side by side without overlap. |
Hierarchical and trees#
Layered (Sugiyama) layout: the right picture for DAGs, pipelines and flows. |
|
Tidy layered tree drawing (Walker's algorithm, linear time). |
|
Radial tidy tree: the root in the centre, depth levels on concentric rings. |
Force-directed and spectral#
Stress-majorization layout (the modern replacement for Kamada–Kawai). |
|
Fruchterman–Reingold spring embedder with simulated-annealing cooling. |
|
ForceAtlas2 (Jacomy, Venturini, Heymann & Bastian, 2014). |
|
Layout from the Fiedler vector and the next Laplacian eigenvector. |
Geometric#
Nodes evenly spaced on a circle, clockwise on screen from start_angle. |
|
Concentric circles. |
|
Nodes on a square lattice in graph order, row by row (unit spacing). |
|
Uniform random positions in the unit square (reproducible for a given seed). |
|
Nodes along an Archimedean spiral, in graph order from the centre outwards. |
|
Two parallel lines of nodes, edges running between them. |
|
All nodes on one horizontal line, one unit apart: the basis of an arc diagram. |
Post-processing#
Move nodes as little as possible so that no two node boxes overlap. |