Perform the Joint Degree Distribution of a graph.
[Jn]=JDD(h,t,d,m,w)
vector composed by the head node of each network edge.
vector composed by the tail node of each network edge.
node degree vector.
limit node degree used in the display.
window label.
normalized JDD.
JDD performs the Joint Degree Distribution of the graph g characterized by the head h and tail t vectors of its edges. The vector composed by the degree of each network node is assumed to be stored in d. Let M(k1,k2) be the total quantity of edges connecting nodes of degrees k1 and k2. JDD stacked into the matrix Jn provides the probability that a randomly selected edge connects k1 and k2-degree nodes. Jn is displayed in the window w. m corresponds to the limit node degree used in the display.
n=300;//network size l0=5;//a maximum of 5 links are created for any created node L=1000;//network square area side [g,dd]=NtgBarabasiAlbert(n,l0,L);//generation of the topology [d,dv]=GraphDegDistWD(g);//extraction of the node degree distribution m=max(dv); w=1; Jn=JDD(g.head,g.tail,dv,m,w);//application of JDD Jn | ![]() | ![]() |