fixes in delete_edge behaviour (handling more corner case's exceptions)