<< NARVAL_G_AvgNeighborConn NARVAL NARVAL_G_Betweenness >>

NARVAL >> NARVAL > NARVAL_G_AvgNodeDegree

NARVAL_G_AvgNodeDegree

Perform the average node degree of a graph.

Calling Sequence

[Ad]=NARVAL_G_AvgNodeDegree(g)

Parameters

g :

network graph.

Ad :

average node degree.

Description

NARVAL_G_AvgNodeDegree performs the average node degree Ad of the graph g.

Examples

n=100;//network size
l=1000;//network squared area side
d=100;//Locality radius
[g]=NARVAL_T_LocalityConnex(n,l,d);//generation of a topology
ind=1;
f=NARVAL_G_ShowGraph(g,ind);
[Ad]=NARVAL_G_AvgNodeDegree(g);//application of NARVAL_G_AvNodeDegree
Ad

Dependency

NARVAL_G_GraphSize

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact

<< NARVAL_G_AvgNeighborConn NARVAL NARVAL_G_Betweenness >>