found the edge with directional sum