<< NL_R_RT2ERT NL_R: Routing NL_R_RTReduction >>

NARVAL >> NL_R: Routing > NL_R_RTPathPresence

NL_R_RTPathPresence

Perform the presence vector of paths stored inside a routing table.

Calling Sequence

[P] = NL_R_RTPathPresence(T,N)

Arguments

T :

Routing table.

N :

Routing table size.

P :

Path presence vector.

Description

NL_R_RTPathPresence performs the presence vector P of paths stored inside the routing table T composed by N lines. When a path is stored inside the line i, P(i)=1, else P(i)=0.

Examples

[path]=NL_F_NLPath();//path to NARVAL module
path=path+'/demos/';//folder path
load(path+'RoutingTables_topo_100.dat','pt','rt1','rt2','rt3','rt4','rt5');//loading of the network routing tables
[l c]=size(rt2);//size of the selected routing table
[pp]=NL_R_RTPathPresence(rt2,l);//application of NL_R_RTPathPresence
rt2(1:15,:)
pp(1:15,:)

Report an issue
<< NL_R_RT2ERT NL_R: Routing NL_R_RTReduction >>