<< NL_G_GraphRadius NL_G: Graph NL_G_GraphStructure >>

NARVAL >> NL_G: Graph > NL_G_GraphSize

NL_G_GraphSize

Extract the number of nodes and links of a graph.

Calling Sequence

[N,L] = NL_G_GraphSize(G)

Arguments

G :

Graph.

N :

Number of nodes.

L :

Number of links.

Description

NL_G_GraphSize extracts the number of nodes N and links L of the graph G.

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_ShowGraph(g,ind);//graph visualization
[n,l]=NL_G_GraphSize(g)//application of NL_G_GraphSize

Report an issue
<< NL_G_GraphRadius NL_G: Graph NL_G_GraphStructure >>