Implementation of decorate for edges in graph