z3:
sudo apt-get install z3 libz3-dev
for arbitrary graph
and its corresponding set of colors
we assign arbitrary node
then the graph coloring problem can be translated into a SAT
problem with
according to ref: https://airccj.org/CSCP/vol3/csit3213.pdf
, graph coloring problem has three types of clause(or constraint):
two nodes connected with one edge can not have the same color
every node must have at least one color
every node can not have more than one color
cabal run