if (FALSE) {
# Load an old graph object
old_graph <- readRDS("old_graph.rds")
# Update to current version
new_graph <- update_graph(old_graph)
# Or use the method directly
new_graph <- old_graph$update_graph()
}
Run the code above in your browser using DataLab