I\'m using the code from this question. I wanted to create a graph that clustered nodes of the same color together. The following dictionary maps the nodes to color: