EDU.auburn.VGJ.algorithm
Interface GraphAlgorithm

All Known Implementing Classes:
BiconnectGraph, CGDAlgorithm, ExampleAlg2, ModelSpring, Spring, TreeAlgorithm

public interface GraphAlgorithm

This interface is used to add algorithms to the graph tool. All that is required is that the algorithm object class has the function compute, and that it implements GraphAlgorithm.

Here is the source.

Author:
Larry Barowski

Method Summary
 java.lang.String compute(Graph graph, GraphUpdate update)
          Apply the algorithm to graph.
 

Method Detail

compute

public java.lang.String compute(Graph graph,
                                GraphUpdate update)
Apply the algorithm to graph. The return value should be null if successful, and an error message if unsuccessful.

Parameters:
update - an object that allows the display to be updated from within the algorithm
See Also:
GraphUpdate