Graph Coloring Problem by Backtracking Approach
Graph Coloring Problem by Backtracking Approach
h>
#include <stdbool.h>
if (graphColoringUtil(G, m, x, k + 1, n))
return true;
x[k] = 0;
}
}
return false;
}
if (!graphColoringUtil(G, m, x, 0, n)) {
printf("Solution does not exist");
return false;
}
return true;
}
int main() {
int n, m;
int G[10][10];
return 0;
}