GraphLab Project

graphlab.extensions.reports
Class ColoringReport

java.lang.Object
  extended by graphlab.extensions.reports.ColoringReport
All Implemented Interfaces:
ColoringListener, BasicExtension, Extension, Parametrizable, GraphReportExtension, GraphReportInterface

public class ColoringReport
extends java.lang.Object
implements GraphReportExtension, ColoringListener, Parametrizable

Author:
Azin Azadi

Field Summary
 java.lang.Boolean allColorings
           
 java.lang.Integer lowerBound
           
 
Constructor Summary
ColoringReport()
           
 
Method Summary
 java.lang.Object calculate(GraphData gd)
           
 java.lang.String checkParameters()
          checks the parameters and return an error string if the parameter values are invalid, otherwise it returns null, also if some other fields should be set after setting the parameters you can do it in this method
 boolean coloringFound(int t)
          Fires whenever a coloring is found
 java.lang.String getDescription()
           
 java.lang.String getName()
           
 void tryToColor(int t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lowerBound

public java.lang.Integer lowerBound

allColorings

public java.lang.Boolean allColorings
Constructor Detail

ColoringReport

public ColoringReport()
Method Detail

calculate

public java.lang.Object calculate(GraphData gd)
Specified by:
calculate in interface GraphReportInterface

tryToColor

public void tryToColor(int t)

coloringFound

public boolean coloringFound(int t)
Description copied from interface: ColoringListener
Fires whenever a coloring is found

Specified by:
coloringFound in interface ColoringListener
Parameters:
t - the maximum color, so the set of colors will be {1, 2, ..., t}
Returns:

getName

public java.lang.String getName()
Specified by:
getName in interface Extension

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface Extension

checkParameters

public java.lang.String checkParameters()
Description copied from interface: Parametrizable
checks the parameters and return an error string if the parameter values are invalid, otherwise it returns null, also if some other fields should be set after setting the parameters you can do it in this method

Specified by:
checkParameters in interface Parametrizable

GraphLab Project