<< NARVAL_G_LocalClustering NARVAL NARVAL_G_MLClustering >>

NARVAL >> NARVAL > NARVAL_G_LongueurArc

NARVAL_G_LongueurArc

Perform the length of each network edge.

Calling Sequence

[l]=NARVAL_G_LongueurArc(x,y,h,t)

Parameters

x :

x-coordinates of network nodes.

y :

y-coordinates of network nodes.

h :

head vector of network edges.

t :

head vector of network edges.

l :

length vector of network edges.

Description

NARVAL_G_LongueurArc performs the Euclidian distance vector l of all graph links. These weights are used during the paths performance between network entities.

Examples

n=80;//network size
L=1000;//network square area side
dmax=100;//locality radius
[g]=NARVAL_T_LocalityConnex(n,L,dmax);//generation of a random topology in respect with the Locality method. 
ind=1;
f=NARVAL_G_ShowGraph(g,ind);
[l]=NARVAL_G_LongueurArc(g.node_x,g.node_y,g.head,g.tail);//application of NARVAL_G_LongueurArc 
l

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact

<< NARVAL_G_LocalClustering NARVAL NARVAL_G_MLClustering >>