<< NL_G_WCDS NL_G: Graph NL_G_WCDSColor >>

NARVAL >> NL_G: Graph > NL_G_WCDSChannel

NL_G_WCDSChannel

Color a WCDS graph.

Calling Sequence

[Go] = NL_G_WCDSChannel(G,N,E,C)

Arguments

G :

WCDS graph.

N :

List of master nodes (nucleus).

E :

List of slave nodes (electron).

C :

List of chanels (colors).

:

Output graph.

Description

NL_G_WCDSChannel colors the Weakly Connected Dominating Set (WCDS) G defined by its list of master (respectivelly slave) nodes N (respectivelly E) (WIKIPEDIA). The list of available channels is stored in C.

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
c=[1 2 14 7];//list of chanels
[goc]=NL_G_WCDSChannel(go,n,e,c);//application of NL_G_WCDSChannel
w=1;//window index
f=NL_G_ShowGraph(goc,w);//graph visualization

Dependency

NL_G_NodeNeighbors

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