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

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.