<< NARVAL_R_Dijkstra_i_j NARVAL NARVAL_R_Flood >>

NARVAL >> NARVAL > NARVAL_R_ERoutingTable

NARVAL_R_ERoutingTable

Generate the enhanced routing table of a graph.

Calling Sequence

[ert]=NARVAL_R_ERoutingTable(rt,g)

Parameters

rt :

routing table.

g :

network graph.

ert :

enhanced routing table.

Description

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

Examples

[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,:)

Dependency

NARVAL_G_Nodes2Path

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact

<< NARVAL_R_Dijkstra_i_j NARVAL NARVAL_R_Flood >>