added custom edge coloring