<< NL_R_PathERT NL_R: Routing NL_R_PathWeightChange >>

NARVAL >> NL_R: Routing > NL_R_PathRT

NL_R_PathRT

Extract the path between two network nodes from a routing table.

Calling Sequence

[P] = NL_R_PathRT(T,I,J,N)

Arguments

T :

Enhanced routing table.

I :

Source node.

J :

Target node.

N :

Graph size.

P :

Path.

Description

NL_R_PathRT extracts the path P between the two network nodes I and J from the routing table T ([path 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
ind=1;//window index
f=NL_G_ShowGraphN(g,ind);//graph visualization
n=100;//network size
[ni,nj]=NL_F_RandIntNiNj(n)//generation of extremal connection nodes
rt=[rt1(:,1) rt1(:,3:$)];//shape the normal routing table from the enhanced one
[p]=NL_R_PathRT(rt,ni,nj,n)//application of NL_R_PathRT

Report an issue
<< NL_R_PathERT NL_R: Routing NL_R_PathWeightChange >>