<< NL_T_MultiLevel NL_T: Topology NL_T_Waxman >>

NARVAL >> NL_T: Topology > NL_T_NewLayerWaxman

NL_T_NewLayerWaxman

Connect subgraphs generated by the Waxman algorithm to a graph.

Calling Sequence

[G,Nl,Ec,Db,D,C,Le,Cv] = NL_G_NewLayerWaxman(A,B,G,Nd,Nf,Nl,L,N,J,Ec,Db,Dd,D,C,Le,Cv)

Arguments

A :

First parameter of the Waxman model.

B :

Second parameter of the Waxman model.

G :

Graph.

:

First node of the previous network layer.

:

Last node of the previous network layer.

L :

Network squared area side per layer.

N :

Maximal quantity of nodes per subnetwork for each layer.

J :

Layer index.

:

Color of each network edge.

:

Original diameter of nodes.

:

Diameter difference between successive network layers.

D :

Diameter of each network node.

C :

Color of each network node.

Le :

Quantity of the current network links.

:

Color of each network layer.

Description

NL_T_NewLayerWaxman connects subnetworks generated by the Waxman algorithm to the network G. It permits to create hierarchic networks.

Nl(j) nodes belonging to the layer j are placed by joining subnetworks created by the Waxman algorithm limited in size by N(j). The location where subnetworks connect to the current topology is uniformly selected among the set of nodes of the previous layer.

Examples

a=0.3;//first parameter of the Waxman model of the first network layer
b=0.5;//second parameter of the Waxman model of the first network layer
ns=30;//network size
L=1000;//network square area side
[g,conn]=NL_T_WaxmanConnexC(a,b,ns,L);//generate a topology
a1=0.3;//first parameter of the Waxman model of the second network layer
b1=0.7;//second parameter of the Waxman model of the second network layer
nl=[30 50 50 100];//quantity of nodes per layer
l=[1000 150 100 40];//network squared area side per layer
n=[5 10 3 3];//maximal quantity of nodes per subnetwork for each layer
db=20;//original diameter of nodes
dd=5;//diameter difference between successive layers
cv=[2 5 6 1];//color of each network layer
nd=1;//first node of the first layer.
nf=length(g.node_x);//last node of the first layer.
le=length(g.tail);
ec=1*ones(1,le);//color of each network edge.
d=db*ones(1,length(g.node_x));//diameter of each network node
c=1*ones(1,length(g.node_x));//color of each network node
j=2;//layer index
[ge,nl,ec,db,d,c,le,cv]=NL_T_NewLayerWaxman(a1,b1,g,nd,nf,nl,l,n,j,ec,db,dd,d,c,le,cv);//application of NL_T_NewLayerWaxman
ge.edge_color=ec;//visualization parameters
ge.node_diam=d;
ge.node_color=c;
ind=1;
f=NL_G_ShowGraph(ge,1);//graph visualization

Dependency

NL_F_RandVectorNoRepl, NL_T_AddWaxman2Node

Report an issue
<< NL_T_MultiLevel NL_T: Topology NL_T_Waxman >>