Change colors of nodes in the graph.