Perform the 1-hop neighborhood of a network node (extended outputs).
[N,Nh,Nt] = NARVAL_M_Neighborhood(i,h,t)
node index.
links head vector.
links tail vector.
1-hop neighborhood of the node i.
1-hop neighborhood of the node i belonging to the graph's head vector.
1-hop neighborhood of the node i belonging to the graph's tail vector.
NARVAL_M_NeighborhoodN performs the 1-hop neighborhood N of the network node i. The extraction is made according to the head h and tail t vectors.
The neighborhood of N15 is {N12,N16,N17,N20}.
n=80;//network size L=1000;//network square area side dmax=100;//locality radius [g]=NARVAL_T_LocalityConnex(n,L,dmax);//generation of a random topology in respect with the Locality method. i=NARVAL_F_Random(length(g.node_x));//selection of the source node [N,Nh,Nt]=NARVAL_M_NeighborhoodN(i,g.head,g.tail);//application of NARVAL_M_NeighborhoodN ind=1;//window index c=5;//visualization parameters: colors b=10;//border d=30;//diameter [gc,f2]=NARVAL_G_ShowNodes(g,N,c,b,d,ind); N Nh Nt | ![]() | ![]() |
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