Select a path in respect with a route manager.
[I] = NL_I_RMSelectRoute(R,K)
Route manager.
Path index.
Route index.
NL_I_RMSelectRoute selects the path I in respect with the route manager R. The path index rates where
and
are the path extremal nodes and n is the network size.
[path]=NL_F_NLPath();//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]=NL_F_RandIntNiNj(n);//generation of connection extreme nodes L=1000;//network square area side [probroute]=NL_I_RouteManagerInit(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]=NL_I_RMSelectRoute(probroute,k)//application of NL_I_RMSelectRoute probroute(k,:) | ![]() | ![]() |