#include #include #include using namespace std; struct graph{ int nedges; int nvertices; vector < vector > edges; vector visited; vector color; }; void create_graph(struct graph &g, int nedges, int nvertices); int color(struct graph &g, int v, string hue); int flag; int main() { int edges,vertices; flag = 0; while(1) { cin >> vertices; if(vertices==0) break; cin>>edges; graph *g = new graph; create_graph(*g,edges,vertices); color(*g,0,"blue"); if(flag==1) cout<<"NOT BICOLORABLE"<>n1>>n2; g.edges[n1].push_back(n2); g.edges[n2].push_back(n1); } for(i=0;i