-
Sorry the implementing class is VisRunner.
Now, I have to do cast it:
[vv is VisualizationViewer]
((VisRunner) vv.getModel().getRelaxer()).getSleepTime());
to get the sleep time rather than the simpler
vv.getModel().getRelaxer().getSleepTime();.
2009-11-24 18:22:08 UTC in Java Universal Network/Graph Framework
-
Hi,
Relaxer has setSleepTime() method but doesn't have corresponding getSleepTime().
Instead, getSleepTime() is implemented in the implementing class VizRunner. get/set methods should go together and defined in the same place.
I suggest to add getSleepTime() to Relaxer interface as well.
2009-11-24 18:16:42 UTC in Java Universal Network/Graph Framework
-
I found this:
VisualizationViewer vv ....
vv.getModel.getRelaxer.setSleepTime(0);
the default is 100.
I thought this would help but still is converging slow.
What can I do?.
2009-11-24 17:54:28 UTC in Java Universal Network/Graph Framework
-
I realized that the position of the label can be changed (as in the JUNG2-Tutorial.PDF) like this:
visualizationViewer.getRenderer().getVertexLabelRenderer().setPosition(Position.S);
and there are many positions to choose from.
But label offset still could help to adjust even better.
2009-10-12 22:03:04 UTC in Java Universal Network/Graph Framework
-
Any thoughts on how to make graph converge faster?
Colleagues told me Pajek shows graph instantly or very quickly and they wanted me to apply in my JUNG code, too.
2009-10-12 20:23:50 UTC in Java Universal Network/Graph Framework
-
I looked at SpringLayout.java
in moveNodes(), it says:
if (xyd.getX() < 0) {
xyd.setLocation(0, xyd.getY());
Where it says "setLocation(0", that should not be a 0!
Because it is 0, half of the node remains outside of the visualization area. The entire if/else block of statements need to be revised.
The node size should be accounted for.
Or, better...
2009-09-24 20:56:11 UTC in Java Universal Network/Graph Framework
-
Hello,
Do you have any suggestions for this?
How to make the nodes not go out of visible area?.
2009-09-24 19:12:38 UTC in Java Universal Network/Graph Framework
-
I had a similar problem.
I put all the .jar files in eclipse and in the build path. So, it showed up in the library. And then, when I opened them, it shows only .class files.
As a workaround, I copied all the .jar files to a linux account.
I used the command "jar xf <jar file>.jar" for each jar file.
And then, I copied all the directory structure from there to Windows and...
2009-09-23 19:55:10 UTC in Java Universal Network/Graph Framework
-
Hello,
When I used SpringLayout, after waiting for a while, some nodes that were near the edges actually went partially out of the viewable area of the VisualizationViewer. Why is this? I believe the center is still in the viewable area but the shapes are partially out.
Is there a way to fix this so the whole shape of the vertices always stay within the viewable area of the visualization?...
2009-09-22 21:38:28 UTC in Java Universal Network/Graph Framework
-
In JUNG2, I tried this.
I got the model from the VisualizationViewer and called prerelax().
The graph seemed to layout instantly but it didn't converge to the final form.[1]
It looks like it is layout halfway or so.
How to make the layout converge to its final form without it appearing on the screen and without waiting (much) ?
Thanks!
[1] my code fragment that does this is like...
2009-09-22 20:22:15 UTC in Java Universal Network/Graph Framework