handling the case that incoming edge is prefix of existing summary