a colorful blocks in a graph