<< NARVAL_G_GraphInit NARVAL NARVAL_G_HookeForce >>

NARVAL >> NARVAL > NARVAL_G_GraphSize

NARVAL_G_GraphSize

Perform the number of nodes and links of a graph.

Calling Sequence

[n,l]=NARVAL_G_GraphSize(g)

Parameters

g :

network graph.

n :

number of nodes.

l :

number of links.

Description

NARVAL_G_GraphSize performs 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]=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,l]=NARVAL_G_GraphSize(g);//application of NARVAL_G_GraphSize
n
l

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact

<< NARVAL_G_GraphInit NARVAL NARVAL_G_HookeForce >>