Generate a random network topology in respect with the Locality method.
[g]=NtgLocality(n,l,d)
network size.
network squared area side.
Locality radius.
network graph.
NtgLocality creates a random connex network topology g in respect with the Locality method LM.
n nodes are placed inside a square of side l. The probability to create a link between two nodes depends on their distance di and the Locality radius R. If di is inferior to R, a link is created.