<< NARVAL_G_MaxNodeDegree NARVAL NARVAL_G_NodeNeighbors >>

NARVAL >> NARVAL > NARVAL_G_NodeDataFields

NARVAL_G_NodeDataFields

Return the most important node data fields of a graph.

Calling Sequence

[n_x,n_y,n_border,n_diameter,n_color,n_number]=NARVAL_G_NodeDataFields(g)

Parameters

g :

network graph.

n_x :

nodes x-coordinates.

n_y :

nodes y-coordinates.

n_border :

nodes border.

n_diameter :

nodes diameter.

n_color :

nodes color.

n_number :

number of nodes.

Description

NARVAL_G_NodeDataFields returns the most important nodes parameter of the graph g. n_x (respectivelly n_y) is a vector composed by the x-coordinate (respectivelly y-coordinate) of each node. Visualization parameters are composed by the nodes border n_border, the nodes diameter n_diameter, and the nodes color n_color. n_number provides the number of nodes of the graph.

Examples

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

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact

<< NARVAL_G_MaxNodeDegree NARVAL NARVAL_G_NodeNeighbors >>