<< NL_G_LoadGraph NL_G: Graph NL_G_LocalClustering >>

NARVAL >> NL_G: Graph > NL_G_LoadGraphNE

NL_G_LoadGraphNE

Import a graph provided by the user into the Scilab environment (2 files: nodes and edges).

Calling Sequence

[G] = NL_G_LoadGraphNE(P,N,Xm,XM,Ym,YM)

Arguments

P :

Path where the file is stored.

N :

File name of the network graph generated by the user.

:

Area minimum x-side.

:

Area maximum x-side.

:

Area minimum y-side.

:

Area maximum y-side.

G :

Graph.

Description

NL_T_LoadGraphNE imports the network topology G provided by the user. The graph structure is assumed to be stored into the two files node_name.topo where each line of index i is composed by its coordinates , and link_name.topo where each line of index j is composed by its parameters . (respectivelly ) is the starting (respectivelly ending) node of the link j. corresponds to its weight used for the path performance. Coordinates are thereafter linearly translated into the range for the vizualization.

Examples

[path]=NL_F_NLPath();//path to NARVAL module
path=path+'/demos/';//folder path
name='topo_20.topo';//file name
Lxmin=100;
Lxmax=900;
Lymin=100;
Lymax=900;
[g]=NL_G_LoadGraphNE(path,name,Lxmin,Lxmax,Lymin,Lymax);//application of NL_G_LoadGraphNE
ind=1;//window index
f=NL_G_ShowGraphN(g,ind);//graph visualization

Dependency

NL_G_MakeGraph

Report an issue
<< NL_G_LoadGraph NL_G: Graph NL_G_LocalClustering >>