Add support for inserting and removing nodes from Graph