<< NARVAL_G_NodeNeighbors NARVAL NARVAL_G_NodeNumber >>

NARVAL >> NARVAL > NARVAL_G_NodeNeighborsD

NARVAL_G_NodeNeighborsD

Display the neighborhood of a node inside a graph.

Calling Sequence

[n,go] = NARVAL_G_NodeNeighborsD(xc,xd,xb,nc,nd,nb,nw,i,g,x)

Parameters

xc :

node color.

xd :

node diameter.

xb :

node border.

nc :

neighbor nodes color.

nd :

neighbor nodes diameter.

nb :

neighbor nodes border.

nw :

neighborhood links width.

i :

window index.

g :

graph.

x :

node index.

n :

list of neighbors.

go :

output graph.

Description

NARVAL_G_NodeNeighborsD performs the neighborhood n of the node x inside the graph g. The output graph go is displayed inside the window i. The neighbors n (respectivelly the node x) are plotted with the node color nc (respectivelly xc), diameter nd (respectivelly xd) and border nb (respectivelly xb).

The neighborhood of the node N15 is [N12,N16,N17,N20].

Examples

name='network';//graph  name
node_number=3;//graph size
tail=[2 3 3];//links parameters
head=[1 1 2];
node_x=[100 700 200];//nodes parameters
node_y=[200 800 600];
[g]=NARVAL_G_MakeGraph(name,node_number,tail,head,node_x,node_y);//generation of a topology with 3 nodes
x=2;//node index
xcol=5;//visualization parameters
xdiam=50;
xborder=20;
neighcol=2;
neighdiam=30;
neighborder=15;
neighlinkswidth=5;
i1=1;//window index
[f1]=NARVAL_G_ShowGraph(g,i1);//graph visualization
i2=2;//window index
[neigh,ge]=NARVAL_G_NodeNeighborsD(xcol,xdiam,xborder,neighcol,neighdiam,neighborder,neighlinkswidth,i2,g,x);//application of NARVAL_G_NodeNeighborsD
neigh

Dependency

NARVAL_G_ShowGraph

Authors

Foued Melakessou

Contact

Dr. Foued Melakessou

Research Associate

Interdisciplinary Centre for Security, Reliability and Trust

Room F106

University of Luxembourg

6, rue Coudenhove Kalergi

L-1359 Luxembourg-Kirchberg

E-mail: foued.melakessou@uni.lu

Tel: (+352) 46 66 44 5346

Home Page


<< NARVAL_G_NodeNeighbors NARVAL NARVAL_G_NodeNumber >>