Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前正在尝试使用 jung 库(http://jung.sourceforge.net)来绘制节点和顶点的有向图。对于一些我很难在文档中找到答案的问题,我有几个问题:
如何检查图上是否存在顶点?
如何在图形的实际显示中关闭边的标签?
当我在 DirectedSparseMultiGraph 上添加顶点时,它们都倾向于形成一个圆形。由于我正在尝试添加 100 多个节点,因此我想以某种方式将它们分散开来。
谢谢
(1) Graph.containsVertex()
(2) 如果您不想要它们,请不要提供边缘标签。PluggableRendererContext 控制可视化的许多方面;请参阅提供边缘标签的方法。
(3) 你使用的是什么布局?JUNG有很多不同的。