Version 3: Colored edges.