Fix division by 0 in horizontal Edge constructor