Lably
Skip to content

Lancichinetti–Fortunato–Radicchi benchmark

Algorithm

  • 2 min read
  • 2 chapters

Related on Lably

Through Degree (graph theory)

The algorithm

The node degrees and the community sizes are distributed according to a power law, with different exponents. The benchmark assumes that both the degree and the community size have power law distributions with different exponents, γ and β, respectively. N is the number of nodes and the average degree is ⟨k⟩. There is a mixing parameter μ, which is the average fraction of neighboring nodes of a node that do not belong to any community that the benchmark node belongs to. This parameter controls the fraction of edges that are between communities. Thus, it reflects the amount of noise in the network. At the extremes, when μ=0 all links are within community links, if μ=1 all links are between nodes belonging to different communities.

One can generate the benchmark network using the following steps.

Step 1: Generate a network with nodes following a power law distribution with exponent γ and choose extremes of the distribution kmin and kmax to get desired average degree is ⟨k⟩.

Step 2: (1−μ) fraction of links of every node is with nodes of the same community, while fraction μ is with the other nodes.

Step 3: Generate community sizes from a power law distribution with exponent β. The sum of all sizes must be equal to N. The minimal and maximal community sizes smin and smax must satisfy the definition of community so that every non-isolated node is in at least in one community:

smin>kmin
smax>kmax

Step 4: Initially, no nodes are assigned to communities. Then, each node is randomly assigned to a community. As long as the number of neighboring nodes within the community does not exceed the community size a new node is added to the community, otherwise stays out. In the following iterations the “homeless” node is randomly assigned to some community. If that community is complete, i.e. the size is exhausted, a randomly selected node of that community must be unlinked. Stop the iteration when all the communities are complete and all the nodes belong to at least one community.

Step 5: Implement rewiring of nodes keeping the same node degrees but only affecting the fraction of internal and external links such that the number of links outside the community for each node is approximately equal to the mixing parameter μ.

Sign in to keep reading

One more chapter is free with a Lably account.

More in Topics in mathematics