fixed it so it doesn't throw invalidNode upon remove, and got rid of verticesCount and edgeCount