DAA Lab WEEK - 8
DAA Lab WEEK - 8
Aim: Write a program to colour the nodes in the graph such that no two adjacent
can have the same colour using backtracking.
Output:
enter the number of vertices in a graph: 4
enter graph edges
0111
1011
0101
1010
All possible solutions are
1212
2121
chromatic number is 2
total number of solutions is 2