<< NL_G_NodeDataFields NL_G: Graph NL_G_NodeNeighborsHT >>

NARVAL >> NL_G: Graph > NL_G_NodeNeighbors

NL_G_NodeNeighbors

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 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]=NL_G_MakeGraph(name,node_number,tail,head,node_x,node_y);//generation of a topology with 3 nodes
w=1;//window index
f=NL_G_ShowGraphN(g,w);//graph visualization
x=2;//node index
[neigh]=NL_G_NodeNeighbors(x,g)//application of NL_G_NodeNeighbors

Report an issue
<< NL_G_NodeDataFields NL_G: Graph NL_G_NodeNeighborsHT >>