- checking if edge exist has been optimized