|
From: Jesus M. S. Jr. <jm...@ih...> - 2001-04-12 15:49:06
|
I have just implemented a force-directed layout using logarithmic strings. I wish I can show it all to you from here, but you can see it for yourself. It aint perfect, but its getting better. To see it run, download the latest source from CVS ( its not part of a release as of this writing ), then run: java -classpath classes/ examples.SampleDirectedForceLayout You should see a VisualGraph that tries to find the equilibrium by constantly adjusting the positions of the vertices. Its running on a separate thread. Heck, you can even add vertices and edges while it is adjusting itself, and it will include the changes in its layout automatically. ( Haven't tried deleting a vertex or edge though while the layout is running ). To cancel the layout, just click on the layout button, then click on it again to start it again. John Salvo -- Homepage: http://homepages.tig.com.au/~jmsalvo/ Public Key: http://pgp5.ai.mit.edu:11371/pks/lookup?op=get&search=0x51F47D34 |