Colorizing cycle and cut of clicked edges, changing colors.