Select a path in respect with a route manager.
[r]=NARVAL_I_SelectRoute(probroute,k)
route manager.
path index.
route index.
NARVAL_I_SelectRoute selects the path r in respect with the route manager probroute. The path index rates k=(ni-1)*n+nj ni and nj are the path extremal nodes and n the network size.
[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');//loading of the network graph n=100;//network size bs=15;//constant buffer size [nd,nf]=NARVAL_F_Random_i_j(n);//generation of connection extreme nodes L=1000;//network square area side [probroute]=NARVAL_I_StartRouteProb(rt1,rt2,rt3,rt4,rt5,pt,n,L);//initialization of the route manager k=(nd-1)*n+nf;//line index for the connection between the nodes nd and nf [r]=NARVAL_I_SelectRoute(probroute,k);//application of SelectRoute probroute(k,:) r | ![]() | ![]() |