colorize the strongly connected components in a graph