Initialize a manager of routes.
[RM]=NARVAL_I_StartRouteProb(rt1,rt2,rt3,rt4,rt5,pt,n,L)
first routing table.
second routing table.
third routing table.
fourth routing table.
fifth routing table.
presence table.
network size.
network square area side.
routes manager.
NARVAL_I_StartRouteProb initializes the route manager RM. For each connection between two network nodes, RM provides a set of alternative paths accompagnied with a probability to use them in respect with their hop length and total length.
[path]=NARVAL_F_NARVALPath();//path to NARVAL module path=path+'/demos/';//folder path load(path+'RoutingTables_topo_100.dat','pt','rt1','rt2','rt3','rt4','rt5');//loading of the network routing tables load(path+'topo_100.graph','g'); n=100;//network size L=1000;//network square area side [nd,nf]=NARVAL_F_Random_i_j(n)//generation of connection extreme nodes [r1,r2,r3,r4,r5]=NARVAL_R_MPathERT(rt1,rt2,rt3,rt4,rt5,nd,nf,g)//alternative routes between nd and nf k=(nd-1)*n+nf;//line index of the connection between nd and nf [RM]=NARVAL_I_StartRouteProb(rt1,rt2,rt3,rt4,rt5,pt,n,L);//application of StartRouteProbability RM(k,:) | ![]() | ![]() |