简体   繁体   English

使用prefuse的图形可视化过于密集

[英]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:

  • Parameter 0 is gravitational force 参数0是重力
  • Parameter 1 is distance 参数1是距离
  • Parameter 2 is barnes-hut theta (a simulation quality parameter) 参数2是barnes-hut theta(模拟质量参数)

index1 is DragForce (param 0 is drag) index1是DragForce(param 0是拖动)

index 2 is Spring force (for edges) 索引2是弹簧力(用于边缘)

  • Parameter 0 is Spring Coefficient (how snappy the spring is) 参数0是弹簧系数(春天是多么敏捷)
  • Parameter 1 is Spring (equilibrium) length 参数1是弹簧(平衡)长度

I would suggest taking a look at Gephi . 我建议看看Gephi You get quite a lot of flexibility when it comes to layouts that should help. 在布局方面,您可以获得相当大的灵活性。

为什么你不使用JUNG ,即使它变得密集,Jung给出了zoomin和缩小的选项,这可能会解决你的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM