<< NARVAL_G_NodeDataFields NARVAL NARVAL_G_NodeNeighborsD >>

NARVAL >> NARVAL > NARVAL_G_NodeNeighbors

NARVAL_G_NodeNeighbors

Perform the neighborhood of a node inside a graph.

Calling Sequence

[n] = NARVAL_G_NodeNeighbors(x,g)

Parameters

x :

node index.

g :

network graph.

n :

list of neighbors.

Description

NARVAL_G_NodeNeighbors performs the neighborhood n of the node x inside the graph g.

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
w=1;//window index
f=NARVAL_G_ShowNodesIndex(g,w);//graph visualization
x=2;//node index
[neigh]=NARVAL_G_NodeNeighbors(x,g);//application of NARVAL_G_NodeNeighbors
neigh

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_NodeDataFields NARVAL NARVAL_G_NodeNeighborsD >>