Generate the enhanced routing table of a graph.
[ert]=NARVAL_R_ERoutingTable(rt,g)
routing table.
network graph.
enhanced routing table.
NARVAL_R_ERoutingTable generates the enhanced routing table ert of the graph g in respect with its routing table rt. Then for each path stored into a single line, its length is provided in the second column in addition to its hop length ([hop length|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 rt1=[rt1(:,1) rt1(:,3:$)];//shape of the normal routing table [ert]=NARVAL_R_ERoutingTable(rt1,g);//application of NARVAL_R_ERoutingTable rt1(1:10,:) ert(1:10,:) | ![]() | ![]() |