add latency to edges