Network Topology Generator
Last update : 28/2/2007
distance - Euclidian distance between 2 network nodes
Calling Sequence
-
[d]=distance(n1,n2,node_x,node_y)
Parameters
-
n1
: first node index
-
n2
: second node index
-
node_x
: network nodes x-coordinates
-
node_y
: network nodes y-coordinates
-
d
: distance between nodes n1 and n2
Description
-
Perform the Euclidian distance d between 2 network nodes. This distance is used later as the link weight for the shortest paths calculation.
Examples
[g]=ntg_locality(100,1000,150);
[d]=distance(10,35,g.node_x,g.node_y);
Authors
-
Foued Melakessou
University of Luxembourg
Bibliography
InTra Project 2004-2007
Used Function
distance.