helix.graph.algo.c3part.preprocessor
Class DataGraphCloser

java.lang.Object
  extended by helix.graph.algo.c3part.preprocessor.GraphPreprocessor
      extended by helix.graph.algo.c3part.preprocessor.GraphCloser
          extended by helix.graph.algo.c3part.preprocessor.DataGraphCloser

public class DataGraphCloser
extends GraphCloser

a class to compute delta closure of datagraphs.
in a datagraph all vertices are assumed to be colored (not necessarily all edges) and monochromatic.
note: color 0 is reserved for the epsilon relation and is specified on edges.
note: this class does not close on the epsilon relation. to do so, use the EpsilonCloser class instead.


Constructor Summary
DataGraphCloser(List<Integer> delta)
          close on all colors (except color 0) with deltas given in delta list.
 
Method Summary
 void run(Graph graph)
          implement our run() operation
 
Methods inherited from class helix.graph.algo.c3part.preprocessor.GraphCloser
logParams, makeDeltaList
 
Methods inherited from class helix.graph.algo.c3part.preprocessor.GraphPreprocessor
run
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataGraphCloser

public DataGraphCloser(List<Integer> delta)
close on all colors (except color 0) with deltas given in delta list. To avoid closing on a color, use a delta value of 0 for this color.

Parameters:
delta - list. List size should be >= maxcolor in the datagraph or 1. In the latter case, the same delta value is used for all colors.
Method Detail

run

public void run(Graph graph)
implement our run() operation

Specified by:
run in class GraphPreprocessor