<< LayerPlacement Network Topology Generator MobilityDijkstra >>

Network Topology Generator >> Network Topology Generator > LongueurArc

LongueurArc

Perform the length of each network edge.

Calling Sequence

[l]=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

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]=NtgLocalityConnex(n,L,dmax);//generation of a random topology in respect with the Locality method. 
show_graph(g);
[l]=LongueurArc(g.node_x,g.node_y,g.head,g.tail);//application of LongueurArc 
l

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact


<< LayerPlacement Network Topology Generator MobilityDijkstra >>