adding color scheme to edge attributes