FUNCTION FOR GRADUATING EDGE COLOR

Jun 29 at 12:41 AM
can anyone please assist me with a function, or how to write a function that will allow me to color my directed edges with 2 different colors that reflect the color of the connected vertices: