Extract 5 alternative connection paths between two network nodes from given enhanced routing tables.
[r1,r2,r3,r4,r5]=NARVAL_R_MPathERT(rt1,rt2,rt3,rt4,rt5,ni,nj,g)
first routing table.
second routing table.
third routing table.
fourth routing table.
fifth routing table.
source node.
target node.
network graph.
first route.
second route.
third route.
fourth route.
fifth route.
NARVAL_R_MPathERT extracts the alternative connection paths r1, r2, r3, r4 and r5 between the two nodes ni and nj of the network g from the given routing tables rt1, rt2, rt3, rt4 and rt5.
[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 n=100;//network size [ni,nj]=NARVAL_F_Random_i_j(n);//generation of extremal connection nodes [r1,r2,r3,r4,r5]=NARVAL_R_MPathERT(rt1,rt2,rt3,rt4,rt5,ni,nj,g);//application of NARVAL_R_MPathERT ni nj r1 r2 r3 r4 r5 | ![]() | ![]() |