EDU.auburn.VGJ.algorithm.shawn
Class Spring

java.lang.Object
  |
  +--EDU.auburn.VGJ.algorithm.shawn.Spring
All Implemented Interfaces:
GraphAlgorithm

public class Spring
extends java.lang.Object
implements GraphAlgorithm

Class to implement Kamada and Kawai's spring algorithm with modifications).

Here is the source.


Constructor Summary
Spring()
           
 
Method Summary
 java.lang.String compute(Graph G, GraphUpdate update)
          Apply the algorithm to graph.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Spring

public Spring()
Method Detail

compute

public java.lang.String compute(Graph G,
                                GraphUpdate update)
Description copied from interface: GraphAlgorithm
Apply the algorithm to graph. The return value should be null if successful, and an error message if unsuccessful.
Specified by:
compute in interface GraphAlgorithm
Following copied from interface: EDU.auburn.VGJ.algorithm.GraphAlgorithm
Parameters:
update - an object that allows the display to be updated from within the algorithm
See Also:
GraphUpdate