New Journal of Physics (Jan 2015)

Exact sampling of graphs with prescribed degree correlations

  • Kevin E Bassler,
  • Charo I Del Genio,
  • Péter L Erdős,
  • István Miklós,
  • Zoltán Toroczkai

DOI
https://doi.org/10.1088/1367-2630/17/8/083052
Journal volume & issue
Vol. 17, no. 8
p. 083052

Abstract

Read online

Many real-world networks exhibit correlations between the node degrees. For instance, in social networks nodes tend to connect to nodes of similar degree and conversely, in biological and technological networks, high-degree nodes tend to be linked with low-degree nodes. Degree correlations also affect the dynamics of processes supported by a network structure, such as the spread of opinions or epidemics. The proper modelling of these systems, i.e., without uncontrolled biases, requires the sampling of networks with a specified set of constraints. We present a solution to the sampling problem when the constraints imposed are the degree correlations. In particular, we develop an exact method to construct and sample graphs with a specified joint-degree matrix, which is a matrix providing the number of edges between all the sets of nodes of a given degree, for all degrees, thus completely specifying all pairwise degree correlations, and additionally, the degree sequence itself. Our algorithm always produces independent samples without backtracking. The complexity of the graph construction algorithm is ${\mathcal{O}}({NM})$ where N is the number of nodes and M is the number of edges.

Keywords