<< NL_G_NodeClose2XY NL_G: Graph NL_G_NodeNeighbors >>

NARVAL >> NL_G: Graph > NL_G_NodeDataFields

NL_G_NodeDataFields

Return the most important node data fields of a graph.

Calling Sequence

[X,Y,B,D,C,N] = NL_G_NodeDataFields(G)

Arguments

G :

Graph.

X :

Nodes' x-coordinates.

Y :

Nodes' y-coordinates.

B :

Nodes' border.

D :

Nodes' diameter.

C :

Nodes' color.

N :

Number of nodes.

Description

NL_G_NodeDataFields returns the most important nodes parameter of the graph G. X (respectivelly Y) is composed by the x-coordinate (respectivelly y-coordinate) of each node. Visualization parameters are composed by the nodes border B, the nodes diameter D, and the nodes color C. N provides the number of nodes of the graph.

Examples

nn=150;//network size
L=1000;//network square area side
dmax=100;//Locality radius
[g]=NL_T_LocalityConnex(nn,L,dmax);//generation of a topology in respect with the Locality method
ind=1;//window index
[f]=NL_G_ShowGraphN(g,ind);//graph visualization
[n_x,n_y,n_border,n_diameter,n_color,n_number]=NL_G_NodeDataFields(g)//application of NL_G_NodeDataFields

Report an issue
<< NL_G_NodeClose2XY NL_G: Graph NL_G_NodeNeighbors >>