Extract the connection path between two network nodes from a routing table.
[path]=RoutingPathRT(rti,ni,nj,n)
routing table.
source node.
target node.
network size.
connection path.
RoutingPathRT extracts the connection path path between two network nodes ni and nj from the routing table ([path length|path]).
g=load_graph('./demos/topo_100_1.graph');//loading of the network graph load('./demos/RoutingTables_topo_100_1.dat');//loading of the network routing tables show_graph(g); n=100;//network size [ni,nj]=Random_i_j(n);//generation of extremal connection nodes rt=[rt1(:,1) rt1(:,3:$)];//shape the normal routing table from the enhanced one [path]=RoutingPathRT(rt,ni,nj,n);//application of RoutingPathRT ni nj path | ![]() | ![]() |