Perform the presence vector of paths stored inside a routing table.
[pp]=NARVAL_R_RTPathPresence(rti,nr)
routing table.
routing table size.
path presence vector.
NARVAL_R_TablePathPresence performs the presence vector pp of paths stored inside the routing table rt composed by nr lines. When a path is stored inside the line i, pp(i)=1, else pp(i)=0.
[path]=NARVAL_F_NARVALPath();//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]=NARVAL_R_RTPathPresence(rt2,l);//application of NARVAL_R_RTPathPresence rt2(1:15,:) pp(1:15,:) | ![]() | ![]() |