<< Related EU Project Network Topology Generator EnhancedRoutingTable >>

Network Topology Generator >> Network Topology Generator > EdgeLength

EdgeLength

Weight a network graph.

Calling Sequence

[g]=EdgeLength(g)

Parameters

g :

network graph.

Description

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.edges.data.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]=NtgLocalityConnex(n,L,dmax);//generation of a random topology in respect with the Locality method. 
show_graph(g);
g.edges.data.length=[]
[g]=EdgeLength(g);//application of EdgeLength
g.edges.data.length

Dependency

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact


<< Related EU Project Network Topology Generator EnhancedRoutingTable >>