The graph I have created using prefuse (shown below) is too dense! There are many nodes linking to many other nodes. Is there anyway I could display this more spread out?
Thanks in advance!
The graph I have created using prefuse (shown below) is too dense! There are many nodes linking to many other nodes. Is there anyway I could display this more spread out?
Thanks in advance!
I would suggest taking a look at Gephi. You get quite a lot of flexibility when it comes to layouts that should help.
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). Most of the prefuse layouts have flexible layout parameters, which should fix your problem.
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 viaForceSimulator,getForces()
The default forces for the default ForceSimulator behind a ForceDirectedLayout are organized as follows:
index0 is NBodyForce:
index1 is DragForce (param 0 is drag)
index 2 is Spring force (for edges)
Why don't you use JUNG, even if it turns out to be dense, Jung gives an option for zoomin and zoom out which might give a work around for your problem.