<< NARVAL_R_PathRT NARVAL NARVAL_R_PredRoute >>

NARVAL >> NARVAL > NARVAL_R_PathWeightMod

NARVAL_R_PathWeightMod

Modify the weight of links belonging to a path inside a network graph.

Calling Sequence

[go] = NARVAL_R_PathWeightMod(g,p,w)

Parameters

g :

graph.

p :

connection path.

w :

additional weight.

g :

output graph.

Description

NARVAL_R_PathWeightMod modifies the weight of links belonging to the route p inside the network graph g. The constant weight w is added to each link of the path.

Examples

[path]=NARVAL_F_NARVALPath();//path to NARVAL module
path=path+'/demos/';//folder path
load(path+'topo_100.graph');//loading of the network graph
load(path+'RoutingTables_topo_100.dat','pt','rt1','rt2','rt3','rt4','rt5');//loading of the network routing tables
n=100;//network size
[nd,nf]=NARVAL_F_Random_i_j(n);//generation of extremal connection nodes  
[path]=NARVAL_R_PathERT(rt1,nd,nf,n);//shortest path between nd and nf
p=NARVAL_G_Nodes2Path(path,g);//indexes of links belonging to the shortest path
w=1000;
g.edge_length(p)//initial length values of each path link
[go]=NARVAL_R_PathWeightMod(g,path,w);//application of NARVAL_R_PathWeightMod 
go.edge_length(p)//new length values of each path link

Dependency

NARVAL_G_Nodes2Path

Authors

Foued Melakessou

Contact

Dr. Foued Melakessou

Research Associate

Interdisciplinary Centre for Security, Reliability and Trust

Room F106

University of Luxembourg

6, rue Coudenhove Kalergi

L-1359 Luxembourg-Kirchberg

E-mail: foued.melakessou@uni.lu

Tel: (+352) 46 66 44 5346

Home Page


<< NARVAL_R_PathRT NARVAL NARVAL_R_PredRoute >>