<< graph-list Graphs handling make_graph >>

metanet >> metanet > Graphs handling > load_graph

load_graph

loads a graph from a file

Calling Sequence

[g,modified,mgs] = load_graph(name)

Parameters

name

string, the path of the file to load

g

a graph_data_structure.

modified

a boolean, if true it indicates that the graph list has been updated to the current version

msg

a string. if this argument is required the load_graph function returns on errors instead of calling the error manager. In such a case msg contains the error message. If no error occurs msg is an empty matrix.

Description

load_graph loads a graph from a file. This file may be either an ascii file (scilab4.x versions) or a binary file compatible with the load and save functions.

Examples

g=load_graph(metanet_module_path()+'/demos/mesh100.graph');
show_graph(g);
g=load_graph(metanet_module_path()+'/demos/colored.graph');
show_graph(g,'new');

See Also


<< graph-list Graphs handling make_graph >>