tried implementing removeEdge but causing a runtime error involving vector erase iterator out of range