<< NARVAL_G_EdgeDataFields NARVAL NARVAL_G_EdgeNumber >>

NARVAL >> NARVAL > NARVAL_G_EdgeLength

NARVAL_G_EdgeLength

Weight a network graph.

Calling Sequence

[g]=NARVAL_G_EdgeLength(g)

Parameters

g :

network graph.

Description

NARVAL_G_EdgeLength transforms the network graph g into a weighted graph where the Euclidian distance between the extreme nodes of edges is used. These weights are stored in g.edge_length. They are needed 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);
g.edge_length=[];
g.edge_length
[g]=NARVAL_G_EdgeLength(g);//application of NARVAL_G_EdgeLength
g.edge_length

Dependency

NARVAL_G_LongueurArc

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact

<< NARVAL_G_EdgeDataFields NARVAL NARVAL_G_EdgeNumber >>