save_graph — saves a graph in a file
save_graph(g,path)
save_graph
saves the graph g
in a graph file.
path
is the name of the graph file where the graph will be saved.
path
can be the name or the pathname of the file; if the
"graph"
extension is missing in path
, it is assumed.
If path
is the name of a directory, the name of the graph is
used as the name of the file.
Standard save function may also be used to save a graph in a file. In this case take care to save only a single graph data structure in the file (without any other variable) if you want to reload this file with load_graph or edit_graph.