Perform the neighborhood of a node inside a graph.
Calling Sequence
[neigh]=NARVAL_G_NodeNeighbors(x,g)
Parameters
x :
node index.
g :
network graph.
neigh :
list of neighbors.
Description
NARVAL_G_NodeNeighbors perform the neighborhood neigh of the node x inside the graph g.
Examples
name='network';node_number=3;tail=[233];head=[112];node_x=[100700200];node_y=[200800600];[g]=NARVAL_G_MakeGraph(name,node_number,tail,head,node_x,node_y);//generation of a topology with 3 nodesx=2;[neigh]=NARVAL_G_NodeNeighbors(x,g);//application of NARVAL_G_NodeNeighborsneigh