<< NL_G_WCDSColor NL_G: Graph NL_G_WCDSNucleusChannel >>

NARVAL >> NL_G: Graph > NL_G_WCDSNucleus

NL_G_WCDSNucleus

Perform the nucleus graph of a WCDS graph.

Calling Sequence

[Go] = NL_G_WCDSNucleus(G,N)

Arguments

G :

WCDS graph.

N :

List of master nodes (nucleus).

:

Output graph.

Description

NL_G_WCDSNucleus computes the virtual topology between the master nodes N of the WCDS graph G (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);//application of NL_G_WCDSNucleus
w2=2;//window index
[f2]=NL_G_ShowGraphN(gnu,w2);//graph visualization

Dependency

NL_F_RemoveFirstOcc, NL_G_NodeNeighbors, NL_G_MakeGraph

Report an issue
<< NL_G_WCDSColor NL_G: Graph NL_G_WCDSNucleusChannel >>