Perform the rich club connectivity of a graph.
[RCC]=NARVAL_G_RichClubConnect(g)
graph.
rich club connectivity.
NARVAL_G_RichClubConnect performs the rich club connectivity RCC of the graph g. For each value of rho between 2 and the total number of nodes of the graph n, the first rho nodes ordererd by their non-increasing degrees are extracted. The Rich Club Connectivity RCC is the ratio of the number of links in the subgraph induced by the rho largest-degree nodes to the maximum possible links rho*(rho-1)/2. RCC is a measure of how close rho-induced subgraphs are to cliques.
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]=NARVAL_T_BarabasiAlbert(n,l0,L);//generation of the topology ind=1; [f]=NARVAL_G_ShowGraph(g,ind); [RCC]=NARVAL_G_RichClubConnect(g);//application of NARVAL_G_RichClubConnect scf(2); clf(2); f=gcf(); f.figure_name="NARVAL_G_RichClubConnect"; plot2d3(2:g.node_number,RCC); plot2d(2:g.node_number,RCC,style=5); xtitle('Rich Club Connectivity','',''); | ![]() | ![]() |