Fixed a few bugs in Graph class when removing / adding connections