Interface EDU.auburn.VGJ.algorithm.GraphAlgorithm
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface EDU.auburn.VGJ.algorithm.GraphAlgorithm

public interface GraphAlgorithm
extends Object
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.

Method Index

 o compute(Graph, GraphUpdate)
Apply the algorithm to graph.

Methods

 o compute
  public abstract 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

All Packages  Class Hierarchy  This Package  Previous  Next  Index