An Algorithm to determine the chromatic number of a graphÂ