<< 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

[neigh,ge]=NARVAL_G_NodeNeighborsD(xcol,xdiam,xborder,neighcol,neighdiam,neighborder,neighlinkswidth,ind,g,x)

Parameters

xcol :

node color.

xdiam :

node diameter.

xborder :

node border.

neighcol :

neighbor nodes color.

neighdiam :

neighbor nodes diameter.

neighborder :

neighbor nodes border.

neighlinkswidth :

neighborhood links width.

ind :

window index.

g :

graph.

x :

node index.

neigh :

list of neighbors.

ge :

output graph.

Description

NARVAL_G_NodeNeighborsD perform the neighborhood neigh of the node x inside the graph g. Graph is plotted in window ind.

Examples

name='network';
node_number=3;
tail=[2 3 3];
head=[1 1 2];
node_x=[100 700 200];
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;
xcol=5;
xdiam=50;
xborder=20;
neighcol=2;
neighdiam=30;
neighborder=15;
neighlinkswidth=5;
i1=1;
[f1]=NARVAL_G_ShowGraph(g,i1);
i2=2;
[neigh,ge]=NARVAL_G_NodeNeighborsD(xcol,xdiam,xborder,neighcol,neighdiam,neighborder,neighlinkswidth,i2,g,x);//application of NARVAL_G_NodeNeighborsD
neigh
ge

Dependency

NARVAL_G_ShowGraph

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact

<< NARVAL_G_NodeNeighbors NARVAL NARVAL_G_NodeNumber >>