EDU.auburn.VGJ.algorithm
Interface GraphAlgorithm
- All Known Implementing Classes:
- ModelSpring, BiconnectGraph, CGDAlgorithm, Spring, TreeAlgorithm, ExampleAlg2
- 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
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