Generate the enhanced routing table of a graph.
[ert]=EnhancedRoutingTable(rt,g)
routing table.
network graph.
enhanced routing table.
EnhancedRoutingTable 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]).
load('./demos/RoutingTables_topo_100_1.dat');//loading of the network routing tables [g]=load_graph('./demos/topo_100_1.graph') rt1=[rt1(:,1) rt1(:,3:$)];//shape of the normal routing table [ert]=EnhancedRoutingTable(rt1,g);//application of EnhancedRoutingTable rt1(1:10,:) ert(1:10,:) | ![]() | ![]() |