Generate the enhanced routing table of a graph from its routing table.
[E] = NL_R_RT2ERT(R,G)
Routing table.
Graph.
Enhanced routing table.
NL_R_RT2ERT generates the enhanced routing table E of the graph G in respect with its routing table R. 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]=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 rt1=[rt1(:,1) rt1(:,3:$)];//shape of the normal routing table [ert]=NL_R_RT2ERT(rt1,g);//application of NL_R_RT2ERT rt1(1:10,:)//first ten routes ert(1:10,:)//first ten routes | ![]() | ![]() |