fix get_neighboring_edges to get all neighboring edges of both vertices