<< NL_G_NodeNeighborsHTN NL_G: Graph NL_G_NodeStructure >>

NARVAL >> NL_G: Graph > NL_G_NodeNumber

NL_G_NodeNumber

Return the number of nodes within a graph.

Calling Sequence

[N] = NL_G_NodeNumber(G)

Arguments

G :

Graph.

N :

Number of nodes.

Description

NL_G_NodeNumber computes the number of nodes N inside the graph G.

Examples

n0=100;//parameters
l=1000;
d=100;
[g]=NL_T_LocalityConnex(n0,l,d);//generation of a graph
ind=1;//window index
f=NL_G_ShowGraph(g,ind);//graph visualization
[n]=NL_G_NodeNumber(g)//application of NL_G_NodeNumber

Report an issue
<< NL_G_NodeNeighborsHTN NL_G: Graph NL_G_NodeStructure >>