package commons.graph.worker;
import commons.graph.ClickGraph;
import commons.graph.model.Edges;
import commons.graph.model.GraphModelException;
import commons.graph.model.Nodes;
public abstract class EdgeWorker
{

ClickGraph graph = null;
Edges edges = null;
Nodes nodes = null;
int   depth = 0;

public void graph (ClickGraph g)
{
   this.graph = g;
}

public void edges (Edges e)
{
   this.edges = e;
}

public void nodes (Nodes n)
{
   this.nodes = n;
}
/**
 * This is called after setup and before recursion starts.
 * Overwrite if needed.
 */
public void init ()
{
}

public void depth (int d)
{
   depth = d;
}

public abstract void work (String a, String b) throws GraphModelException;
}
