<< NL_G_GraphConnexPartI NL_G: Graph NL_G_GraphDegreeDistPlot >>

NARVAL >> NL_G: Graph > NL_G_GraphDegreeDist

NL_G_GraphDegreeDist

Perform the node degree distribution of a graph.

Calling Sequence

[D,V] = NL_G_GraphDegreeDist(G)

Arguments

G :

Graph.

D :

Node degree distribution.

V :

Node degree vector.

Description

NL_G_GraphDegreeDist performs the node degree distribution D of the graph G. The degree (quantity of neighbors) of each node is stored in V.

Examples

n=300;//network size
l0=5;//a maximum of 5 links are created for any created node
L=1000;//network square area side 
[g,d]=NL_T_BarabasiAlbert(n,l0,L);//generation of the topology
ind=1;//window index
[f]=NL_G_ShowGraph(g,ind);//graph visualization
[d,dv]=NL_G_GraphDegreeDist(g)//application of NL_G_GraphDegreeDist

Dependency

NL_G_NodeNeighbors

Report an issue
<< NL_G_GraphConnexPartI NL_G: Graph NL_G_GraphDegreeDistPlot >>