Updated delete function

Delete function now accounts for updating the number of connections of a given Node