delete_graph (and fix update_graph)