[英]Graph visualization using prefuse is too dense
The graph I have created using prefuse (shown below) is too dense! 我使用prefuse创建的图形(如下所示)太密集了! There are many nodes linking to many other nodes. 有许多节点链接到许多其他节点。 Is there anyway I could display this more spread out? 无论如何我可以展示更多的展开吗?
Thanks in advance! 提前致谢!
Are you using a force based layout? 您使用的是基于力的布局吗? If so, change the force parameters of your layout, or try a different layout action (radial, fructherman-rheinhold, etc). 如果是这样,请更改布局的力参数,或尝试不同的布局操作(径向,fructherman-rheinhold等)。 Most of the prefuse layouts have flexible layout parameters, which should fix your problem. 大多数prefuse布局都有灵活的布局参数,这应该可以解决您的问题。
In particular, use ForceDirectedLayout.getForceSimulator()
to retrieve the ForceSimulator object for your layout, then change the parameters in your force array, which you can obtain via ForceSimulator,getForces()
特别是,使用ForceDirectedLayout.getForceSimulator()
来检索布局的ForceSimulator对象,然后更改force数组中的参数,您可以通过ForceSimulator,getForces()
获取ForceSimulator,getForces()
The default forces for the default ForceSimulator behind a ForceDirectedLayout are organized as follows: ForceDirectedLayout后面的默认ForceSimulator的默认强制组织如下:
index0 is NBodyForce: index0是NBodyForce:
index1 is DragForce (param 0 is drag) index1是DragForce(param 0是拖动)
index 2 is Spring force (for edges) 索引2是弹簧力(用于边缘)
为什么你不使用JUNG ,即使它变得密集,Jung给出了zoomin和缩小的选项,这可能会解决你的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.