colorize_edge_attrs function

Apply colors based on edge attribute values