Scilab Reference Manual |
---|
save_graph — saves a graph
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.
g=load_graph(SCI+'/demos/metanet/mesh100'); show_graph(g); if MSDOS then unix('del mymesh100.graph'); else unix('rm -f mymesh100.graph'); end save_graph(g,'mymesh100.graph'); g=load_graph('mymesh100'); show_graph(g,'new');
<< salesman | shortest_path >> |