mode
最佳化佈局的技巧
類型:字串,預設值:major
neato
支援模式
mode="major"
:neato
使用應力主導化1。mode="KK"
:neato
使用梯度下降法的卡馬達-川井2版本。對於小型(節點數 < 100)圖形,KK
有時明顯更快。一個顯著的缺點是KK
可能會循環。mode="sgd"
:neato
使用隨機梯度下降法3的版本。sgd
的優點是比以前的兩種方法收斂速度更快、更可靠,而sgd
的缺點是它在固定數量的迭代中運行,並且在某些圖形中可能需要更大的maxiter
值。
neato
中有兩種實驗性模式
mode="hier"
,它添加了類似於dot
中使用的佈局的由上往下的方向性,並且mode="ipsep"
,它允許圖形指定節點之間的最小垂直和水平距離。(請參閱sep
屬性。)
-
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. ↩︎
- 圖形
注意:僅限 neato。