Sangeeta Bhatia - 2010-09-08

Hi,

I am trying to get JUNG to display a graph for me. I want the length of the edges to depend on their weight.
I checked the forum, and saw that another user had a similar requirement.
According to the advice given to him, this is what I am now doing:
a) build an instance of DijkstraDistance with an edgeWeightTransformer.
b) build an instance of KKLayout by supplying it the above constructed instance of DijkstraDistance.
c) building an instance of BasicVisualizationServer using the above layout.

It is at step c that the code seems to be going an infinite loop, trying to fetch the edge weights over and over again.
What am I doing wrong?
Even though I don't think this is where the problem is, I am setting the maxIterations in KKLayout to 1.

Any help will be greatly appreciated.

Thanks everyone
Sangeeta