<< NL_T_Grid NL_T: Topology NL_T_LocalityConnex >>

NARVAL >> NL_T: Topology > NL_T_Locality

NL_T_Locality

Generate a random network topology in respect with the Locality method.

Calling Sequence

[G] = NL_T_Locality(N,L,R)

Arguments

N :

Graph size.

L :

Network squared area side.

R :

Locality radius.

G :

Graph.

Description

NL_T_Locality creates the random graph topology G in respect with the Locality method.

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 , a link is created.

Examples

n=100;//network size
l=1000;//network squared area side
d=100;//Locality radius
[g]=NL_T_Locality(n,l,d);//application of NL_T_Locality
ind=1;//window index
f=NL_G_ShowGraphN(g,ind);//graph visualization

Dependency

NL_F_RandVectorCoord, NL_F_DistanceNiNj, NL_G_MakeGraph, NL_G_GraphEdgesLength

Report an issue
<< NL_T_Grid NL_T: Topology NL_T_LocalityConnex >>