Optimization, Operations Research, Python, Data Science, Editors Pick.
constraints to ensure that: Every node must be colored If any node from one edge has a color, ensure that the color is being used At most 1 node of each edge can be colored with a given color Break symmetry (this is not required, but might help) Finally, our objective should minimize the total