<< RoutingPathRT Network Topology Generator RoutingPredRoute >>

Network Topology Generator >> Network Topology Generator > RoutingPathWeightMod

RoutingPathWeightMod

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

Calling Sequence

[g]=RoutingPathWeightMod(g,path,w)

Parameters

g :

maximal value.

path :

connection path.

w :

additional weight.

Description

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

Examples

g=load_graph('./demos/topo_100_1.graph');//loading of the network graph
load('./demos/RoutingTables_topo_100_1.dat');
n=100;//network size
[nd,nf]=Random_i_j(n);//generation of extremal connection nodes  
[path]=RoutingPathERT(rt1,nd,nf,n);//shortest path between nd and nf
p=nodes_2_path(path,g);//indexes of links belonging to the shortest path
w=1000;
g.edges.data.length(p)//initial length values of each path link
[g]=RoutingPathWeightMod(g,path,w);//application of RoutingPathWeightMod 
g.edges.data.length(p)//new length values of each path link

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact


<< RoutingPathRT Network Topology Generator RoutingPredRoute >>