Fix delete_graph.