<< NL_G_WCDSNucleus NL_G: Graph NL_G_WeightOfPath >>

NARVAL >> NL_G: Graph > NL_G_WCDSNucleusChannel

NL_G_WCDSNucleusChannel

Color the nucleus graph of a WCDS graph.

Calling Sequence

[Go] = NL_G_WCDSNucleusChannel(G,N,C)

Arguments

G :

Graph between master nodes of a WCDS graph.

N :

List of master nodes (nucleus).

C :

List of channels (nucleus).

:

Output graph.

Description

NL_G_WCDSNucleusChannel colors the virtual topology between the master nodes N of the WCDS graph G in order to reduce interferences (WIKIPEDIA). Two nucleus are connected together if they are direct neighbors or if there exists one slave node between them.

Examples

n=200;//network size
l=1000;//network squared area side
d=100;//Locality radius
[g]=NL_T_LocalityConnex(n,l,d);//generation of a topology
[go,n,e]=NL_G_WCDS(g);//calculation of the WCDS of g
w=1;//window index
f=NL_G_ShowGraphN(go,w);//graph visualization
[gnu]=NL_G_WCDSNucleus(g,n);//extraction of the graph between master nodes (nucleus)
Col=[2 5 6 7];//color
[gnu_c]=NL_G_WCDSNucleusChannel(gnu,n,Col);//application of NL_G_WCDSNucleusChannel
w2=2;//window
[f2]=NL_G_ShowGraphN(gnu_c,w2);//graph visualization

Dependency

NL_G_GraphDegreeDist, NL_R_BFS, NL_F_RandInt1n, NL_G_NodeNeighbors

Report an issue
<< NL_G_WCDSNucleus NL_G: Graph NL_G_WeightOfPath >>