Graph Coloring Implementation for Discrete Optimization