vector to store colour of vertex assiging all to - 1 i . e . uncoloured colours are either 0 or 1 for understanding take 0 as red and 1 as blue
int col [ ] = new int [ V ] ; Arrays . fill ( col , - 1 ) ;