added adjustGraphContentsAfterDeletion

4  6
0  1
0  2
0  3
1  2
3  3
3  0
works

but
4  5
0  1
0  2
0  3
1  2
3  3
does not