<< NARVAL_T_Locality NARVAL NARVAL_T_Ntg >>

NARVAL >> NARVAL > NARVAL_T_LocalityConnex

NARVAL_T_LocalityConnex

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

Calling Sequence

[g]=NARVAL_T_LocalityConnex(n,l,d)

Parameters

n :

network size.

l :

network squared area side.

R :

Locality radius.

g :

network graph.

Description

NARVAL_T_LocalityConnex 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. The largest connex component of the generated graph is extracted.

Examples

n=100;//network size
l=1000;//network squared area side
d=100;//Locality radius
[g]=NARVAL_T_LocalityConnex(n,l,d);//application of NARVAL_T_LocalityConnex
ind=1;
f=NARVAL_G_ShowGraph(g,ind);

Dependency

NARVAL_T_Locality, NARVAL_G_GraphConnex

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact

<< NARVAL_T_Locality NARVAL NARVAL_T_Ntg >>