By adjacency matrix algorithm for the chromatic number of a graph