Added delete_graph and delete_list functions