Implemented node and edge removal functionality, plus associated unit tests.