Perform the neighborhood of a node within a graph.
Calling Sequence
[N] = NL_G_NodeNeighbors(I,G)
Arguments
I :
Node index.
G :
Graph.
N :
List of neighbors.
Description
NL_G_NodeNeighbors performs the neighborhood N of the node I inside the graph G.
The neighborhood of the node is .
Examples
name='network';//graph namenode_number=3;//graph sizetail=[233];//links parametershead=[112];node_x=[100700200];//nodes parametersnode_y=[200800600];[g]=NL_G_MakeGraph(name,node_number,tail,head,node_x,node_y);//generation of a topology with 3 nodesw=1;//window indexf=NL_G_ShowGraphN(g,w);//graph visualizationx=2;//node index[neigh]=NL_G_NodeNeighbors(x,g)//application of NL_G_NodeNeighbors