Extract the path between two network nodes from a routing table.
[P] = NL_R_PathRT(T,I,J,N)
Enhanced routing table.
Source node.
Target node.
Graph size.
Path.
NL_R_PathRT extracts the path P between the two network nodes I and J from the routing table T ([path length|path]).
[path]=NL_F_NLPath();//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 ind=1;//window index f=NL_G_ShowGraphN(g,ind);//graph visualization n=100;//network size [ni,nj]=NL_F_RandIntNiNj(n)//generation of extremal connection nodes rt=[rt1(:,1) rt1(:,3:$)];//shape the normal routing table from the enhanced one [p]=NL_R_PathRT(rt,ni,nj,n)//application of NL_R_PathRT | ![]() | ![]() |