A class scheduler using graphs and coloring