////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //This program is for Graph coloring Problem. The Backtracking method is //used to solve this problem. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// import java.io.*; import java.util.*; class Gr_Color { public int G[][],n,m,edges; int color_tab[]; public Gr_Color(int MAX) { System.out.println("\n\n\t Graph Coloring "); G=new int[MAX][MAX]; color_tab=new int[MAX]; for(int i=0; ijavac Gr_Color.java D:\DAA_MU>java Gr_ColorDemo Graph Coloring Enter the number of nodes 5 Enter the number of edges 8 Create a graph Enter the edges of the graph Enter value of V1 1 Enter value of V2 2 Enter the edges of the graph Enter value of V1 1 Enter value of V2 3 Enter the edges of the graph Enter value of V1 1 Enter value of V2 4 Enter the edges of the graph Enter value of V1 2 Enter value of V2 3 Enter the edges of the graph Enter value of V1 2 Enter value of V2 4 Enter the edges of the graph Enter value of V1 2 Enter value of V2 5 Enter the edges of the graph Enter value of V1 3 Enter value of V2 4 Enter the edges of the graph Enter value of V1 4 Enter value of V2 5 The Vertices To be Coloured As... V1:= 1 V2:= 2 V3:= 3 V4:= 4 V5:= 1 D:\DAA_MU>