<< NL_R_MultiPathERT NL_R: Routing NL_R_PathRT >>

NARVAL >> NL_R: Routing > NL_R_PathERT

NL_R_PathERT

Extract the path between two network nodes from an enhanced routing table.

Calling Sequence

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

Arguments

T :

Enhanced routing table.

I :

Source node.

J :

Target node.

N :

Graph size.

P :

Path.

Description

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

Report an issue
<< NL_R_MultiPathERT NL_R: Routing NL_R_PathRT >>