Weighted graph coloring for quantized computing