type: string, default: major
neato supports modes:
mode="major": neato uses stress majorization1.mode="KK": neato uses the Kamada-Kawai2 version of the gradient descent method. KK is sometimes appreciably faster for small (number of nodes < 100) graphs. A significant disadvantage is that KK may cycle.mode="sgd": neato uses a version of the Stochastic Gradient Descent3 method. sgd's advantage is faster and more reliable convergence than both the previous methods, while sgd's disadvantage is that it runs in a fixed number of iterations and may require larger values of maxiter in some graphs.There are two experimental modes in neato:
mode="hier", which adds a top-down directionality similar to the layout used in dot, andmode="ipsep", which allows the graph to specify minimum vertical and horizontal distances between nodes. (See the sep attribute.)Gansner, E.R., Koren, Y., North, S. (2005). Graph Drawing by Stress Majorization. In: Pach, J. (eds) Graph Drawing. GD 2004. Lecture Notes in Computer Science, vol 3383. Springer, Berlin, Heidelberg. ↩︎
Tomihisa Kamada, Satoru Kawai, An algorithm for drawing general undirected graphs, Information Processing Letters, Volume 31, Issue 1, 1989, Pages 7-15. ↩︎
J. X. Zheng, S. Pawar and D. F. M. Goodman, "Graph Drawing by Stochastic Gradient Descent," in IEEE Transactions on Visualization and Computer Graphics, vol. 25, no. 9, pp. 2738-2748, 1 Sept. 2019, doi: 10.1109/TVCG.2018.2859997. ↩︎
Note: neato only.
© 2025 The Graphviz Authors
Licensed under the Eclipse Public License 1.0.
https://www.graphviz.org/docs/attrs/mode/