<< NL_R_RPLRT NL_R: Routing NL_R_RTPathPresence >>

NARVAL >> NL_R: Routing > NL_R_RT2ERT

NL_R_RT2ERT

Generate the enhanced routing table of a graph from its routing table.

Calling Sequence

[E] = NL_R_RT2ERT(R,G)

Arguments

R :

Routing table.

G :

Graph.

E :

Enhanced routing table.

Description

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]).

Examples

[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

Dependency

NL_G_Nodes2Path

Report an issue
<< NL_R_RPLRT NL_R: Routing NL_R_RTPathPresence >>