Optimized calculation of network links in a moving topology.
[H,T] = NL_M_Locality(X,Y,R)
X-coordinate vector.
Y-coordinate vector.
Communication range.
Head link vector.
Tail link vector.
NL_M_Locality extracts the links of the network graph G in a moving topology. Coordinates of nodes are stored in [X,Y]. A link is available if the distance between two distinct nodes is smaller than their communication range R. Links information is stored in [H,T], where H (respectivelly T) gives the initial (respectivelly final) node of each link.