Let $G$ be a graph with a set of nodes $V$ and a set of edges $E$. Let $G'$ be a graph with the same set of nodes $V$ but a second set of edges $E'$.
For a set of nodes $X\subset V$, we denote $f(X)$ as the number of cliques (using the edges $E'$) when partitioning $X$ in cliques. More precisely, this partition is computed by recursively finding the biggest clique. So, if $X_1$ is the biggest clique in $X$ and $X_2$ is the biggest clique in $X\setminus X_1$ and so on, we have $X=X_1\cup X_2\cup\cdots\cup X_k$ and $f(X) = k$.
Now, I want to color $G$ (using the set of edges $E$ and not $E'$) with the minimal number of colors such that, writing this partitioning of colors as $V = V_1 \cup\cdots\cup V_m$ we minimize $f(V_1) + \cdots+f(V_m)$.
I'm stuck on this problem, any hint is precious :)
Right now, I have tried to colorize the graph node by node (with the DSATUR heuristic) and when there are different possible colors, I compute $f$ for each choice and choose the one that minimizes $f$. But it's way too slow.