Extract the connection path between two network nodes from a routing table.
[path]=NARVAL_R_PathRT(rti,ni,nj,n)
routing table.
source node.
target node.
network size.
connection path.
NARVAL_R_PathRT extracts the connection path path between two network nodes ni and nj from the routing table ([path length|path]).
[path]=NARVAL_F_NARVALPath();//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; f=NARVAL_G_ShowGraph(g,ind); n=100;//network size [ni,nj]=NARVAL_F_Random_i_j(n);//generation of extremal connection nodes rt=[rt1(:,1) rt1(:,3:$)];//shape the normal routing table from the enhanced one [p]=NARVAL_R_PathRT(rt,ni,nj,n);//application of NARVAL_R_PathRT ni nj p | ![]() | ![]() |