I have the adjacency matrix of the graph (graph theory). First of all, I want to get the chromatic number of this graph (the smallest number of colors needed to color the vertices of a graph so that no two adjacent vertices share the same color). Then I want to get colors (like groups: from 1 to 4 maximum) of the vertices. Is it possible to get it in R using the igraph package? Thanks a lot.