helix.graph.algo.c3part.preprocessor
Class Chromatizer
java.lang.Object
helix.graph.algo.c3part.preprocessor.GraphPreprocessor
helix.graph.algo.c3part.preprocessor.GraphCleaner
helix.graph.algo.c3part.preprocessor.MultigraphCleaner
helix.graph.algo.c3part.preprocessor.Chromatizer
public class Chromatizer
- extends MultigraphCleaner
Method Summary |
void |
logParams()
override logParams |
void |
run(Graph graph)
implement our run() operation |
Chromatizer
public Chromatizer(RColorSet colors,
int maxColor)
- default constructor
- Parameters:
colors
- required colorsmaxColor
- 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 colorsmaxColor
- 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.
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