Update M coloring Graph Algorithm