Colors each position in a functions tuple.

Previously colored only each function distinctly, caused false isomorphism between instance1 with edges 0->0 and 0->1 and instance2 with edges 0->0 and 1->0.