Nodes determine the color of edges