GraphViz:仅修复节点的y位置 [英] GraphViz: fixing only the y position of nodes
本文介绍了GraphViz:仅修复节点的y位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想固定节点的y位置,但要根据力的方向自动对齐x位置.
I want to pin the y position of nodes, but have the x positions aligned automatically according to force direction.
每个y位置都是独立的,因为它对应于y轴上的坐标,并且有数千个节点,所以我认为对每个节点使用子图并不合理.
Each y position is individual because it corresponds to a coordinate on the y axis, and there are several thousand nodes, so I don't think using a sub graph for each node is reasonable.
推荐答案
使用简单的强制定向布局编写了我自己的Java2D/PDFGraphics2D函数.当您已经对布局的外观有了清晰的认识时,GraphViz会很烦人.
Wrote my own Java2D / PDFGraphics2D function with a simple force directed layout. GraphViz is quite annoying when you have already a quite clear idea about how the layout should look.
这篇关于GraphViz:仅修复节点的y位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文