support dynamic colors for edges