All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface relaaja.netlayout.VGJ.GraphAlgorithm

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 Index

 o compute(Graph)
Apply the algorithm to graph.

Methods

 o compute
 public abstract Graph compute(Graph graph)
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