<< NL_R_ARCRootInit NL_R: Routing NL_R_ARCSubPaths >>

NARVAL >> NL_R: Routing > NL_R_ARCRootIter

NL_R_ARCRootIter

Perform the propagation of the ARC algorithm from a source node.

Calling Sequence

[M,N] = NL_R_ARCRootIter(G,S,M,N)

Arguments

G :

Graph.

S :

Source node.

M :

Discovery packet storage matrix.

N :

Quantity of discovery packets on the network.

Description

NL_R_ARCRootIter propagates discovery packets of the ARC algorithm on the graph G emitted from the root node S.

Examples

nodx=[600 400 800 300 500 700 900 200 400 600 800 100 300 500 700];
nody=[900 700 700 500 500 500 500 300 300 300 300 100 100 100 100];
he=[1 1 2 2 3 3 4 4 4 5 5 6 6 7 8 8 9 9 9 10 10 10 13 14];
ta=[2 3 4 5 6 7 5 8 9 9 10 7 11 11 9 12 10 13 14 11 14 15 14 15];
n=15;
[g] = NL_G_MakeGraph('ARC',n,ta,he,nodx,nody);
//R A B D C M K L E F J N G H I 
f=NL_G_ShowGraphN(g,1);
s=1;//root node
[mat,np]=NL_R_ARCRootInit(g,s)//Initialization
[mat,np]=NL_R_ARCRootIter(g,s,mat,np)//application of NL_R_ARCRootIter

Dependency

NL_G_NodeNeighbors, NL_F_DistanceNiNj

Report an issue
<< NL_R_ARCRootInit NL_R: Routing NL_R_ARCSubPaths >>