helix.graph.algo.c3part.preprocessor
Class Chromatizer

java.lang.Object
  extended by helix.graph.algo.c3part.preprocessor.GraphPreprocessor
      extended by helix.graph.algo.c3part.preprocessor.GraphCleaner
          extended by helix.graph.algo.c3part.preprocessor.MultigraphCleaner
              extended by helix.graph.algo.c3part.preprocessor.Chromatizer

public class Chromatizer
extends MultigraphCleaner


Constructor Summary
Chromatizer(RColorSet colors, int maxColor)
          default constructor
Chromatizer(RColorSet colors, int maxColor, List<Integer> delta)
          alternate constructor : use the delta values in user's delta list to specify which colors are required.
 
Method Summary
 void logParams()
          override logParams
 void run(Graph graph)
          implement our run() operation
 
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

Chromatizer

public Chromatizer(RColorSet colors,
                   int maxColor)
default constructor

Parameters:
colors - required colors
maxColor - maximum color to use normally this should equal the number of colors in the source datagraph minus 1 (because color 0 is unused)

Chromatizer

public Chromatizer(RColorSet colors,
                   int maxColor,
                   List<Integer> delta)
alternate constructor : use the delta values in user's delta list to specify which colors are required. a negative delta value indicates infinite closure and therefore means that the color is actually not required.

Parameters:
colors - required colors
maxColor - maximum color to use normally this should equal the number of colors in the source datagraph minus 1 (because color 0 is unused)
delta - delta list. List size should be >= maxColor or 1. In the latter case, the same delta is assumed for all colors.
Method Detail

run

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

Specified by:
run in class GraphPreprocessor

logParams

public void logParams()
override logParams

Overrides:
logParams in class GraphPreprocessor