<< NARVAL_T_Ntg NARVAL NARVAL_T_Waxman >>

NARVAL >> NARVAL > NARVAL_T_UploadTopology

NARVAL_T_UploadTopology

Import a graph provided by the user into the Scilab environment.

Calling Sequence

[g]=NARVAL_T_UploadTopology(path,name,Lxmin,Lxmax,Lymin,Lymax)

Parameters

path :

path where the file is stored.

name :

file name of the network graph generated by the user.

Lxmin :

network area minimum x-side.

Lxmax :

network area maximum x-side.

Lymin :

network area minimum y-side.

Lymax :

network area maximum y-side.

g :

network graph.

Description

NARVAL_T_UploadTopology imports a network topology provided by the user. The graph structure is assumed to be stored into two files node_name.topo where each line of index i is composed by its coordinates x_node_i y_node_i, and link_name.topo where each line of index j is composed by its parameters head_node_j tail_node_j weight_j. head_node_j (respectivelly tail_node_j) is the starting (respectivelly finishing) node of the link j. weight_j corresponds to its weight used for future path optimization. Coordinates are thereafter linearly translated into the range [Lxmin,Lxmax;Lymin,Lymax] for the vizualization. The topology g is finally imported into the Scilab environment.

Examples

[path]=NARVAL_F_NARVALPath();//path to NARVAL module
path=path+'/demos/';//folder path
name='topo_20.topo';//file name
Lxmin=100;
Lxmax=900;
Lymin=100;
Lymax=900;
[g]=NARVAL_T_UploadTopology(path,name,Lxmin,Lxmax,Lymin,Lymax);//application of NARVAL_T_UploadTopology
ind=1;
f=NARVAL_G_ShowGraph(g,ind);
g

Dependency

NARVAL_G_MakeGraph

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact

<< NARVAL_T_Ntg NARVAL NARVAL_T_Waxman >>