<< NARVAL_G_NodeNeighborsD NARVAL NARVAL_G_Nodes2Edge >>

NARVAL >> NARVAL > NARVAL_G_NodeNumber

NARVAL_G_NodeNumber

Return the number of nodes inside a graph.

Calling Sequence

[n]=NARVAL_G_NodeNumber(g)

Parameters

g :

graph.

n :

number of nodes.

Description

NARVAL_G_NodeNumber computes the number of nodes n inside the graph g.

Examples

n0=100;
l=1000;
d=100;
[g]=NARVAL_T_LocalityConnex(n0,l,d);//generation of a graph
ind=1;
f=NARVAL_G_ShowGraph(g,ind);
[n]=NARVAL_G_NodeNumber(g);//application of NARVAL_G_NodeNumber
n

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact

<< NARVAL_G_NodeNeighborsD NARVAL NARVAL_G_Nodes2Edge >>