Skip to main content
Scientific Reports logoLink to Scientific Reports
. 2020 Dec 7;10:21348. doi: 10.1038/s41598-020-78336-9

Degree difference: a simple measure to characterize structural heterogeneity in complex networks

Amirhossein Farzam 1,✉, Areejit Samal 1,2,✉, Jürgen Jost 1,3,✉
PMCID: PMC7721722  PMID: 33288824

Abstract

Despite the growing interest in characterizing the local geometry leading to the global topology of networks, our understanding of the local structure of complex networks, especially real-world networks, is still incomplete. Here, we analyze a simple, elegant yet underexplored measure, ‘degree difference’ (DD) between vertices of an edge, to understand the local network geometry. We describe the connection between DD and global assortativity of the network from both formal and conceptual perspective, and show that DD can reveal structural properties that are not obtained from other such measures in network science. Typically, edges with different DD play different structural roles and the DD distribution is an important network signature. Notably, DD is the basic unit of assortativity. We provide an explanation as to why DD can characterize structural heterogeneity in mixing patterns unlike global assortativity and local node assortativity. By analyzing synthetic and real networks, we show that DD distribution can be used to distinguish between different types of networks including those networks that cannot be easily distinguished using degree sequence and global assortativity. Moreover, we show DD to be an indicator for topological robustness of scale-free networks. Overall, DD is a local measure that is simple to define, easy to evaluate, and that reveals structural properties of networks not readily seen from other measures.

Subject terms: Complex networks, Statistical physics

Introduction

Since the dawn of network science1–3, scientists have tried to capture the structure and dynamics of networks by measures that are simple to understand and easy to evaluate (see e.g.4–6). Early studies on the structure of complex networks focused primarily on the global topology of these discrete objects7–9. Global measures necessarily take some kind of average, and therefore, such measures do not capture much of the individual variability and heterogeneity in networks. To avoid this, it is important to investigate local measures and their distributions in complex networks. Local measures are in particular of substantial interest for analyzing massive networks, where global measures are either impractical to compute or fail to provide the desired information about network components. It is thus natural to witness growing interest among the network science community to investigate the local geometry of complex networks (see e.g.10–14). Local clustering coefficient7, generalized degree, local assortativity15, Ollivier–Ricci curvature11,12,14,16, and Forman–Ricci curvature13,14 are some of the notable measures characterizing the local structural properties of complex networks.

Moreover, with the recent exception of discrete Ricci type curvature measures, such local or global measures are typically evaluated on vertices, rather than on edges, although the edges are of course what really constitutes a network. In this work, we shall therefore systematically pursue an edge-based approach to characterize the local structure of complex networks. As mentioned, discrete Ricci type curvature measures are local and edge-based, and they are by now established as useful tools for the analysis of empirical networks12–14,17,18. For instance, the Forman-Ricci curvature of an edge in an unweighted and undirected network essentially evaluates the sum of the degrees of its two vertices, and edges with a large such sum are important for the cohesion of the network in question and therefore deserve attention. However, when we want to understand the local heterogeneity in a network, Forman–Ricci curvature may not be so useful, because it does not distinguish between an edge that connects two vertices of intermediate but similar degrees, from an edge that connects a highly connected vertex with a sparsely connected one; in both cases, the sum of their degrees is large. Now, there is an important and well-established global concept for judging the homogeneity or heterogeneity of a network, its assortativity (see for instance19). A network is assortative if on average, the degrees of connected vertices are similar, and disassortative, if they tend to be rather different. For instance, many social networks, particularly those formed through group-to-group connections, are known to be assortative20, i.e. agents with high degree seem to connect to other high-degree agents, and similarly, low-degree agents tend to connect to agents with lower rather than higher degree. Again, this property cannot be captured by node-based quantities, such as the degree sequence, because a simple rewiring can transform an assortative into a disassortative network or vice versa, without changing the degree sequence. This motivates us to systematically explore the ‘degree difference’ between two vertices of an edge in complex networks.

Degree difference or closely related measures have been previously used in the study of complex networks, for instance, to study scale-free properties of networks21, and to investigate the structure of inter-organizational networks22. However, curiously, so far there seems to have been no systematic analysis of degree difference in complex networks, although for the reasons explained above, this is a most natural local measure. It is simple to define, easy to evaluate, and captures the local picture underlying assortativity or disassortativity. Moreover, we shall show in this contribution that the measure provides novel insight into both synthetic and real networks. For the synthetic networks, we will derive explicit formulae, thereby laying the foundations for a theoretical investigation.

In fact, assortativity can be defined more generally23 to express how similar or dissimilar neighbouring vertices are with respect to some quantity α. In particular for social networks19, this is important as it connects to homophily, that is, the tendency to associate with like-minded or otherwise similar people. Thus, for a graph G(V, E), with vertex set V and edge set E, and an attribute α:V→F, mapping the n vertices in V to elements in F, assortativity captures heterogeneity in mixing patterns in G at a global scale. The global assortativity (GA) with respect to α is given by

rα=Tr(e)-‖e2‖L11-‖e2‖L1 1

where e is the n×n matrix of joint probabilities with ei,j=P(α(i),α(j)), Tr(e) is the trace, and ‖e2‖L1 is the L1 norm of e. When α maps the vertices to their degrees, we denote rα by r, and Eq. (1) is equal to the Pearson correlation coefficient of the degrees of connected vertices. By convention, if the term assortativity is used without specifying the attribute, the attribute is assumed to be the degree.

There have been previous attempts to break assortativity down to its more local components. Piraveenan et al.24 define a local point-wise measure of assortativity, local node assortativity (LNA), denoted by ρ^v, quantifying the contribution of each vertex v to the GA in the network as follows

ρ^v=j(j+1)(k¯v-μq)2Mσq2 2

where j is the excess degree of v, k¯v is the average excess degrees of the neighbours of v, μq is the global average excess degree, M is the number of edges in the network, and σq is the standard deviation of the excess degree distribution in the network. Consider an edge e={v,u}. As we arrive at v via the edge e, excess degree of v, also referred to as remaining degree of v, is the number of neighbours of v other than the vertex u from which we arrived at v. Given how excess degree is defined, it is the natural measure to consider when comparing the number of neighbours of two connected vertices, since the connection between the two is a given and the connections other than the edge between the two neighbours are those contributing to the similarity or difference in their degrees. Hence, excess degree of the vertices is the measure used for computing GA and LNA. Note that, although conceptually excess degree of a vertex is defined with an incident edge in mind, formally excess degree is, in fact, equal to degree minus 1.

GA can be obtained from LNA through the following identity

r=∑j,k∈D(V)jk(ej,k-qjqk)σq2=1σq2∑j,k∈D(V)jkej,k-μq2 3
=1σq2∑j∑v∈Vj(j+1)jk¯v2M-(j+1)jμq2M=1σq2∑j∑v∈Vjρ^v 4

where D(V) denotes the set of degrees of vertices in V, and Vj is the set of vertices in V with excess degree j. In Eq. (4), the term within the first braces is the contribution of vertex v to the first term in Eq. (3) and the term within the second braces is its contribution to μq2.

While this represents a valuable step towards understanding local mixing patterns in networks, LNA appears somewhat complicated and is defined on the vertices. In fact, at first sight it seems most natural to come up with such a node-based measure. But recall that assortativity is evaluating similarities or differences between neighbouring vertices, and two neighbouring vertices are nothing but an edge. Therefore, it seems more natural to evaluate quantities directly on edges. That is, in fact, our starting point. Thus, we shall decompose assortativity into its basic unit, the degree difference (DD) between the vertices forming an edge. Given an edge e={v,u} in an unweighted and undirected graph linking the vertices v and u with degrees deg(v) and deg(u), DD of e is given by

ℸ(e)=deg(v)-deg(u) 5

where ℸ:E→Z≥ is a function from the edge set of the graph to non-negative integers, mapping e to absolute value of its DD. Similarly, for directed graphs, we define directed DD (diDD) as follows

ℸ→(e)=degout(u)-degin(v) 6

where e=(v,u) is the directed edge from v to u and ℸ→:E→Z has the entire set of integers as its codomain. Note that there are four possible ways to define the directed DD (diDD), corresponding to the four permutations of in- or out-degree of the head vertex minus in- or out-degree of the tail vertex. The variation given in Eq. (6) is most consistent with the orientation on the edge and the direction of potential flow. After verifying that this simple and elegant network measure meaningfully captures structural similarities and differences, we here show that DD is independently informative and capable of characterizing network structure. Importantly, DD of edges, through (indirect) quantification of the contribution of individual edges to the GA, is the basic unit of assortativity, as illustrated in Fig. 1. Furthermore, we provide an explanation as to why DD can characterize structural heterogeneity in mixing patterns, a feature that is lost due to averaging when employing the measures GA or LNA. In Fig. 2, we show three graphs with same degree sequence and same GA that have different DD distributions.

Figure 1.

Figure 1

Heterogeneity in mixing patterns in networks is quantified through global assortativity (GA) given by Eq. (1) at the global scale. At a more local scale, mixing pattern is quantified through local node assortativity (LNA) given by Eq. (2) which aggregates the heterogeneity in degrees of the vertices anchoring the edges incident on the vertex. Degree Difference (DD) is the basic local unit contributing to assortativity and captures heterogeneity in mixing patterns at the scale of individual edges.

Figure 2.

Figure 2

Graphs with same degree sequence and same global assortativity (GA) can have different degree difference (DD) distributions. The figure shows 3 graphs with 7 vertices and 9 edges with same degree sequence and GA of ≈-0.358, but with different DD distributions. In the figure, the bar plot below each graph shows the DD distribution.

The remainder of this paper is organized as follows. In the next section, we derive the analytical formulae for DD distribution in Erdös–Rényi (ER) random graphs and Barabási–Albert (BA) scale-free graphs. We also show the connection between DD distribution and GA. Thereafter, in the “Computational results” section, we present our numerical results for the DD distribution in diverse synthetic and real networks. We also report our computations showing the importance of DD for topological robustness in networks. Lastly, we conclude with a summary and future outlook.

Analytical results

Based on the definition of DD for an edge e={v,u} in an undirected and unweighted network given by Eq. (5), the probability mass function Pℸ, where Pℸ(d)=Pr(ℸ(e)=d), is given by

Pℸ(d)=Pr|deg(v)-deg(u)|=d{v,u}∈E=∑{v,u}∈Es.t.|k-l|=dPrdeg(v)=k,deg(u)=l|{v,u}∈E. 7

We next derive the analytical formulae for the DD distribution in two widely-used network models. These formulae will express DD distribution as a sum for Erdös–Rényi (ER) random graphs25 and Barabási–Albert (BA) scale-free networks8. Thereafter, we present our analytical calculations unravelling the connection between DD, LNA and GA in undirected networks.

DD distribution for Erdös–Rényi model

In an ER random graph, G(n, p), where n is the number of vertices and p is the probability that an edge exists between any pair of vertices, the degrees of two neighbouring vertices are uncorrelated except for the edge that is connecting them. Therefore, the relevant quantity is the excess degree of a vertex and we denote its probability distribution by qk:=Pr(exdeg(v)=k)=Pr(deg(v)=k+1). For a pair of vertices v and u connected via an edge {v,u}, we then have the identity26

Pr(deg(v)=k,deg(u)=l|{v,u}∈E)=qk-1ql-1. 8

The above relation holds since, conditional on the existence of an edge between two vertices, their excess degree distributions are independent. For given degree and excess degree distributions in G(n, p)23, Eqs. (7) and (8) imply

Pℸ(d)=∑|k-l|=dqk-1ql-1=∑|k-l|=dBk-1n-2Bl-1n-2pk+l-2(1-p)2n-2-(k+l)=(2-δd,0)pd-2(1-p)2(n-1)-d∑l=1n-1-dBd+l-1n-2Bl-1n-2p1-p2l 9

where Bkn denotes the binomial coefficient nk and δd,0 is the Kronecker delta, which we use to avoid double counting the same permutation of (k, l) when d=0.

As n→+∞, the degree distribution for the graph ensemble G(n, p) with average degree c=p(n-1) becomes the Poisson distribution23

pk=e-cckk!. 10

where pk is the probability that a given vertex has degree k. As qk=(k+1)pk+1c for ER random graphs, the excess degree distribution is given by

ql-1=e-ccl-1(l-1)!. 11

Inserting this in Eq. (9), for sufficiently large ER random graphs, we can approximate DD distribution by

Pℸ(d)=∑|k-l|=de-2cck-1(k-1)!cl-1(l-1)!=(2-δd,0)e-2ccd-2∑l=1n-1-dc2l(d+l-1)!(l-1)!. 12

In Fig. 3, we verify that the formulae given by Eqs. (9) and (12) match with the numerical computations for values of d where Pℸ(d) is sufficiently large considering the ensemble size.

Figure 3.

Figure 3

Concordance between analytical formula for DD distribution and numerical computations in Erdős–Rényi (ER) model. (a) Computations for ER graph with 200 vertices and average degree ∼6. In this case, Eq. (9) is used to obtain the analytical result. (b) Computations for ER graph with 1000 vertices and average degree ∼6. In this case, Eq. (12) is used to obtain the analytical result. In both cases, the numerical result is obtained via averaging the computed Pℸ over an ensemble of 10,000 ER networks with same size and average degree. Note that Pℸ(d) is of the order of 10-6 or smaller for d>18, thus given our ensemble size, the comparison between the numerical and analytical computations is not valid, and thus not shown, for d>18.

DD distribution for Barabási–Albert model

To derive the DD distribution in a BA network from Eq. (7), we use a result by Fotouhi and Rabbat27 for the joint degree distribution of neighbouring vertices in a BA network with n→∞, and this result is

Prdeg(v)=k,deg(u)=l|{v,u}∈E=2β(β+1)k(k+1)l(l+1)1-Bβ+12β+2Bl-βk+l-2βBl+1k+l+2 13

where β gives the number of edges attached to the new vertex added at each iteration of the BA model implementing a preferential attachment scheme. Thereafter, using Eq. (7), we can obtain the following analytical formula for the DD distribution in BA networks

Pℸ(d)=∑|k-l|=d2β(β+1)k(k+1)l(l+1)1-Bβ+12β+2Bl-βk+l-2βBl+1k+l+2. 14

Connection with global assortativity

The connection between DD and GA is clear once the identity in Eq. (4) is understood. For a graph G(V, E), the following identities explain the connection between GA and DD distribution with LNA as an intermediate step.

σq2r=∑j∑v∈Vj(j+1)jk¯v2M-(j+1)jμq2M 15
=∑j∑v∈Vjj(j+1)2M∑k≥j(k-j)-∑k<j(j-k)j+1+j-(j+1)jμq2M=∑j∑v∈Vjj2(j+1)2M+j∑k≥j(k-j)-j∑k<j(j-k)2M-(j+1)jμq2M=∑jNqjj2(j+1)2M+∑j∑d∑k=j±d|k-j|2M+∑k=j+d(j-1)(k-j)2M-∑k=j-d(j+1)(j-k)2M-∑j∑v∈Vj(j+1)jμq2M=∑ddPℸ(d)+12M∑jNqjj2(j+1)+(j-1)∑k≥j(k-j)-(j+1)∑k<j(j-k)-∑j∑v∈Vj(j+1)jμq2M=⟨d⟩+N2M⟨j2(j+1)⟩+12M∑j∑d∑k=j+dd(j-1)-∑k=j-dd(j+1)-∑j∑v∈Vj(j+1)jμq2M 16

where Vj denotes the set of vertices with excess degree j, N is the number of vertices in the network, d is the DD, Pℸ is the probability mass function of DD distribution, and the remaining notation is as in Eq. (2). Note, the index k under the summations in above equation refers to the excess degree of only the neighbours of the vertex with excess degree j, and we used this incomplete notation for brevity. The precise expanded notation, for k=j+d for instance, is {k∈Ξv|k=j+d}, where v is a vertex with excess degree j and Ξv is the set of excess degrees of neighbours of v. Also, note that the degree difference is the same as the excess degree difference of two neighbouring vertices. In Eq. (16), the terms in the first outer brackets show the connection between DD and the first term in the summation in Eq. (4), and the term in the second outer brackets is the same as the second term in the summation in Eq. (4), i.e., the contribution of individual vertices to μq2. The first outer brackets in Eq. (16) contains the first moment of DD distribution (first term in the brackets), the third and second moments of excess degree distribution (the second term in the brackets), and a sum involving DD and excess degree of an incident vertex (the third term in the brackets). In addition to explaining the connection between DD and GA, Eq. (16) further clarifies that we can compute GA and LNA using DD and excess degrees, while DD cannot be deduced from GA and LNA. We demonstrate this remark in supplementary information (SI) Figure S1 where we show DD distribution in an ensemble of BA networks as the network is rewired to increase its GA, and in SI Figure S2 where we set a constraint on GA of ensembles of ER and BA networks and show DD distribution after two random independent rewirings.

Computational results

We computed the DD distribution for 4 synthetic networks7,8,25,28, namely, Erdös–Rényi (ER) model, Watts–Strogatz (WS) model, Barabási–Albert (BA) model, and Random Geometric (RG) model, and 10 empirical or real networks7,29–37. Of the 10 real networks analyzed here, 6 are undirected and 4 are directed networks. The full description of the network dataset is included in the SI Appendix. We also use the 4 synthetic networks to analyze the relationship between DD and topological robustness and to investigate the possible correlation between DD and other edge-based measures.

DD distribution in undirected networks

We have computed the DD distribution of edges in 4 undirected synthetic networks and 6 undirected real networks listed in SI Appendix (Figs. 4, 5). From these figures, we can observe qualitative differences between the DD distribution in different undirected networks. As the DD distributions in Fig. 4 suggest, different types of synthetic networks have distinct DD distributions. In particular, random geometric (RG) graphs are known to show degree assortativity38 and the RG graphs in our dataset are highly assortative with assortativity ∼0.55. However, ER graphs have degree assortativity close to 0. The similarity between the DD distributions in RG and ER graphs reveals a remarkable fact about these two synthetic networks; while they differ significantly in GA, the mixing patterns are strikingly similar at the local scale.

Figure 4.

Figure 4

DD distributions in 4 different synthetic networks. (a) Erdös–Rényi (ER). (b) Watts–Strogratz (WS). (c) Barabási–Albert (BA). (d) Random Geometric (RG). For each model, the parameters used are indicated besides it in parenthesis. For ER model, the parameters are number of vertices n and probability p of connecting an edge between any pair of vertices. For WS model, the parameters are number of vertices n, the number of neighbours k to which each vertex is connected in the starting regular graph, and rewiring probability β. For BA model, the parameters are number of vertices n and number of edges β that are attached to the new vertex at each iteration step. For RG model, the parameters are number of vertices n and radius ϵ. The reported correlation for each model and a given set of parameters is an average over a sample of 50 networks.

Figure 5.

Figure 5

DD distributions in 6 undirected real-world networks. (a) Actor. (b) Collaboration. (c) Internet. (d) Phone calls. (e) Power grid. (f) Protein.

DD distribution in directed networks

DD distribution can be computed in directed networks by considering the networks as undirected by ignoring the directions on edges. Such a computation of DD distribution in undirected simplifications of directed networks could still be informative of existing heterogeneity as demonstrated for the 4 directed real networks, namely, Citation, Email, Metabolic, and WWW, in Fig. 6. To better understand the details of this heterogeneity though, we can use a directed variation of DD that can highlight the specifics leading to such heterogeneity.

Figure 6.

Figure 6

DD distributions in 4 directed real-world networks. (a–d) Distributions ℸ(e) computed using Eq. (5) by ignoring the directions of the edges. (e–h) Distributions ℸ→(e) computed using the directed definition Eq. (6). (i–l) Distributions ℸ→alt(e) computed using an alternative definition of diDD.

The directed DD (diDD) as defined in Eq. (6), captures the local homophily between in-degree of the tail vertex and out-degree of the head vertex of a directed edge. One can also define diDD differently in order to study homophily between other combinations of in-degree and out-degree of vertices anchoring a directed edge. In fact, distributions of diDD defined with respect to each combination of in-degree and out-degree can be informative in their own right. For instance, we consider diDD, ℸ→ as defined in Eq. (6) as well as an alternate variation of diDD defined as ℸ→alt:=degout(u)-degout(v) for a directed edge (v, u). The diDD distributions in Fig. 6 enable us to make the following observations about the 4 directed real networks in our dataset. Metabolic network has a rather symmetric homophily in the direction of the reactions, for both variations of diDD. On the other hand, for Citation network, while distribution of ℸ→alt is relatively symmetric for the negative and positive values, the distribution of ℸ→ is rather asymmetric with a long tail in the negative side. In Email network, the majority of Emails are exchanged between Email addresses with similar Email traffic. In the distributions for Email network, there are two other major peaks corresponding to Emails sent from Email addresses sending many Emails (e.g. organizational Email addresses) to those that send only few Emails (Fig. 6j). There are also a small number of Emails sent from Email addresses receiving only a small number of Emails to those sending out a large number of Emails (Fig. 6f). Moreover, according to the distributions in WWW network, within the domain of University of Notre Dame, there are many hyperlinks from webpages that have links to many other webpages (e.g. a departmental webpage) to those that do not contain many hyperlinks to other webpages (e.g. a webpage corresponding to an announcement) (Fig. 6l).

Correlation with other edge-based measures

We explore the correlation between DD and three other established edge-based measures, namely edge betweenness centrality39,40, Forman-Ricci curvature (RF)13,14 and Ollivier-Ricci curvature (RO)11,12,14,16 for characterizing the local network geometry. These results are summarized in Fig. 7. It is seen that DD is moderately correlated with edge betweenness and RF in BA networks, and this correlation is positive with edge betweenness and negative with RF. To avoid misinterpretation, however, it is important to note that the degree sum enters negatively into the definition of RF in the case of unweighted and undirected graphs, due to the fact that this notion originated in Riemannian geometry and therefore carries over the normalizations natural in that field. In SI Figure S3, we show the distribution of RF in the 4 classes of synthetic networks analyzed here. By comparing with Fig. 4, it is seen that DD provides insight into the structural heterogeneity of a network, which is not captured by Forman–Ricci curvature. In essence, we find that degree sum and degree difference are positively correlated in scale-free BA networks, which seems of interest for further understanding of those networks. In general, however, one does not expect such a correlation, and indeed, the correlation of DD with RO in all 4 classes of synthetic networks analyzed here, and with RF in all classes other than BA networks, seems to be negligible. Although edge betweenness seems to have a weakly positive correlation with DD across four classes of synthetic networks, this correlation seems to be noticeable only for BA networks while being sufficiently small in RG graphs.

Figure 7.

Figure 7

Correlation between degree difference (DD) and three established edge-based measures, namely, Forman–Ricci curvature (RF), Ollivier–Ricci curvature (RO), and edge betweenness centrality (Ebw) in synthetic networks. We show in (a) the Pearson correlation coefficients and in (b) the Spearman correlation coefficients. For each model, the parameters used are indicated besides it in parenthesis. For ER model, the parameters are number of vertices n and probability p of connecting an edge between any pair of vertices. For WS model, the parameters are number of vertices n, the number of neighbours k to which each vertex is connected in the starting regular graph, and rewiring probability β. For BA model, the parameters are number of vertices n and number of edges β that are attached to the new vertex at each iteration step. For RG model, the parameters are number of vertices n and radius ϵ. The reported correlation for each model and a given set of parameters is an average over a sample of 50 networks.

These observations further clarify that DD distribution, despite its connection with measures such as edge betweenness and discrete Ricci curvatures, is an independent measure. As explained in other subsections, DD distribution as a stand-alone measure can be informative for the local geometry of the edges in the network and heterogeneity in mixing patterns, and other edge-based measures considered here cannot be used as a canonical proxy for DD.

DD distribution and topological robustness

To test any potential relationship between DD value of edges and topological robustness of the network, we here compute the expected size of the largest connected component (LCC) in two ensembles of ER and BA networks during reverse edge percolation in increasing and decreasing order of DD. Through a comparative analysis, we also investigate the importance of DD for finding the minimum edge cut of the LCC.

Figure 8 shows the result of this reverse edge percolation analysis in ER and BA networks with respect to increasing and decreasing order of DD, increasing order of Forman–Ricci curvature (RF), increasing order of Ollivier–Ricci curvature (RO), and decreasing order of edge betweenness. In case of the BA network, this specific simulation shows a second-order phase transition when edges are removed in decreasing order of DD, a phenomenon observed for edge removal in increasing order of RF. Moreover, in BA networks, the impact of failure of edges in decreasing order of DD on LCC size seems to be only negligibly different from when failure happens in decreasing order of edge betweenness. This similarity in BA networks is not simply due to the moderate positive correlation between these two measures, but has to do with the importance of local geometry for global connectivity in these networks. In other words, removing edges with large DD seems to be as detrimental to the LCC size as is removing edges with large edge betweenness, although the former, in contrast to the latter, depends only on the local geometry of the network. Thus, for purposes of robustness, the easily-computable and local DD can be a good proxy for the global edge betweenness. Therefore, edges with large DD play important roles for the global coherence in a network and they deserve systematic attention.

Figure 8.

Figure 8

Topological robustness of synthetic networks with respect to deletion of edges based on DD, Forman–Ricci curvature (RF), Ollivier–Ricci curvature (RO), and edge betweenness centrality (Ebw). (a) Erdös–Rényi (ER) network with n=1000 and p=0.01. (b) Barabási–Albert (BA) network with n=1000 and β=5. In each case, we show the size of the largest connected component (LCC) normalized by the number of vertices in the graph as a function of the percentage of edges removed. Edges are deleted based on increasing and decreasing order of DD, increasing order of RF, increasing order of RO and decreasing order of Ebw. For each model, the plots show the mean and standard deviation of LCC size over an ensemble of 50 networks generated with the specified parameters.

The minimum cut41 in a connected network is another factor that is an indicator of topological robustness. Minimum edge cut (MEC) is a set of edges of minimum size that, if removed, the initially connected network is no longer one connected component. In Fig. 9, we compare the importance of each of the four edge-based measures—DD, edge betweenness, RO and RF—towards predicting the MEC in the network. We compute the MEC of the LCC in each of the 4 synthetic networks analyzed here, and then, determine the percentile of each edge in the MEC with respect to the value of the measure on the edges in the LCC. Thereafter, we pool the percentiles of the edges for MEC corresponding to each network in the ensemble. In Fig. 9, each violin plot shows the distribution of these edge percentiles in the pool corresponding to 50 networks in the ensemble for each synthetic network. This figure shows that MEC in BA networks seems to be rather uncorrelated with these edge-based measures. In RG graphs, while only edge betweenness and the two curvature measures show some potential for being used to infer MEC in sparser RG graphs, for denser RG graphs, where most edges in the MEC seem to be almost flat with respect to Forman-Ricci curvature, DD appears as the second best predictor of MEC. These two best predictors of MEC in dense RG graphs are, however, the worst predictors of MEC in ER networks. Notably, DD seems to be the most important measure for inferring MEC in Watts–Strogatz (WS) small-world networks, especially when the network is highly regular. Thus, this simple measure seems to play an important role in keeping the LCC connected, or in other words, having a larger LCC, in a variety of network structures.

Figure 9.

Figure 9

Comparison of the importance of the four edge-based measures, DD, edge betweenness (Ebw), Forman–Ricci curvature (RF), and Ollivier–Ricci curvature (RO), towards predicting the minimum edge cut (MEC) in synthetic networks. For the MEC of the LCC in each synthetic network, we determine the percentile of each edge in the MEC with respect to the value of the four measures on the edges. Then, we pool the edge percentiles for MEC corresponding to each network in the ensemble. Each violin plot shows the distribution of these edge percentiles in the pool corresponding to 50 networks in the ensemble for the corresponding synthetic network. For each model, the parameters used are indicated besides it in parenthesis as described in caption of Fig. 4.

Conclusions

Unravelling the structure of complex networks is a key interest since the rise of network science. To better understand the structure of large networks, it is necessary to study both the global macro-scale properties and the local features from which the global network structure emerges. Heterogeneity and homogeneity in mixing patterns of vertices in complex networks is an important known characterizing feature of network structure, which reveals features beyond the degree sequence. Degree assortativity was famously introduced to quantify such heterogeneity at a global scale. In this contribution, we study degree difference (DD) as the basic unit of mixing pattern in complex networks and explain the significance of this local edge-based measure. We explain how this simple, elegant, and computationally inexpensive measure can reveal valuable information about network structure. A closely related measure, namely degree-degree distance, which is defined as the difference of the logarithm of the degrees of both vertices constituting an edge, has been recently introduced and used to study scale-free property in complex networks21. In this work, we systematically explored DD as a measure for structural analysis of complex networks and discuss the mathematical connection between DD and global assortativity. Note that degree-degree distance21, unlike DD studied here, is less closely related to assortativity. Furthermore, we show that DD can be used to characterize the local network geometry and shed light on an understudied source of similarities or differences between different classes of synthetic and real networks. Notably, our numerical and analytical computations speak to independence and usefulness of this measure in its own right, as well as its importance for topological robustness of networks. In conclusion, we recommend the simple measure, degree difference, to be included in the standard toolkit of network science.

Moving forward, we expect this research will seed additional studies on local structural properties of complex networks in both theoretical and applied settings. As the transition from local to global mixing patterns in complex networks is yet to be systematically explored, we believe further theoretical and empirical studies on heterogeneity in mixing patterns at various scales of coarse-graining can help improve our understanding of the mesoscale network structure and how the global topology of complex networks emerges from its local geometry.

Supplementary information

Acknowledgements

We thank the anonymous reviewers for their constructive comments which have helped improve the manuscript. We also thank Yasharth Yadav for discussions. A.S. would like to acknowledge support from the Max Planck Society, Germany, through the award of a Max Planck Partner Group in Mathematical Biology. A.F. would like to thank Shirin Maleki for assistance with creating Fig. 1.

Author contributions

A.F., A.S. and J.J. designed the study. A.F. performed the simulations. A.F., A.S. and J.J. analyzed results. A.F., A.S. and J.J. wrote the manuscript. All authors reviewed and approved the manuscript.

Funding

Open Access funding enabled and organized by Projekt DEAL.

Data availability

All data generated or analyzed during this study are included in this article or is available upon request from the corresponding author.

Competing interests

The authors declare no competing interests.

Footnotes

Publisher's note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Contributor Information

Amirhossein Farzam, Email: farzam@mis.mpg.de.

Areejit Samal, Email: asamal@imsc.res.in.

Jürgen Jost, Email: jost@mis.mpg.de.

Supplementary information

is available for this paper at 10.1038/s41598-020-78336-9.

References

  • 1.Moreno JL. Who Shall Survive? A New Approach to the Problem of Human Interrelations. Washington: Nervous and mental disease publishing; 1934. [Google Scholar]
  • 2.Moreno JL. Sociometry and the cultural order. Sociometry. 1943;6:299–344. doi: 10.2307/2785184. [DOI] [Google Scholar]
  • 3.Newman MHA. Mr. Russell’s causal theory of perception. Mind. 1928;37:137–148. doi: 10.1093/mind/XXXVII.146.137. [DOI] [Google Scholar]
  • 4.Boccaletti S, Latora V, Moreno Y, Chavez M, Hwang D-U. Complex networks: structure and dynamics. Phys. Rep. 2006;424:175–308. doi: 10.1016/j.physrep.2005.10.009. [DOI] [Google Scholar]
  • 5.Newman ME, Barabási A-L, Watts DJ. The Structure and Dynamics of Networks. Princeton: Princeton University Press; 2006. [Google Scholar]
  • 6.Caldarelli G. Large Scale Structure and Dynamics of Complex Networks: From Information Technology to Finance and Natural Science. Singapore: World Scientific; 2007. [Google Scholar]
  • 7.Watts DJ, Strogatz SH. Collective dynamics of small-world networks. Nature. 1998;393:440–442. doi: 10.1038/30918. [DOI] [PubMed] [Google Scholar]
  • 8.Barabási AL, Albert R. Emergence of scaling in random networks. Science. 1999;286:509–512. doi: 10.1126/science.286.5439.509. [DOI] [PubMed] [Google Scholar]
  • 9.Albert R, Barabási AL. Statistical mechanics of complex networks. Rev. Mod. Phys. 2002;74:47–97. doi: 10.1103/RevModPhys.74.47. [DOI] [Google Scholar]
  • 10.Bauer F, Jost J, Liu S. Ollivier-Ricci curvature and the spectrum of the normalized graph Laplace operator. Math. Res. Lett. 2012;19:1185–1205. doi: 10.4310/MRL.2012.v19.n6.a2. [DOI] [Google Scholar]
  • 11.Jost J, Liu S. Ollivier’s Ricci curvature, local clustering and curvature-dimension inequalities on graphs. Discr. Comput. Geom. 2014;51:300–322. doi: 10.1007/s00454-013-9558-1. [DOI] [Google Scholar]
  • 12.Sandhu R, et al. Graph curvature for differentiating cancer networks. Sci. Rep. 2015;5:12323. doi: 10.1038/srep12323. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13.Sreejith R, Mohanraj K, Jost J, Saucan E, Samal A. Forman curvature for complex networks. J. Stat. Mech. Theory Exp. 2016;2016:P063206. doi: 10.1088/1742-5468/2016/06/063206. [DOI] [Google Scholar]
  • 14.Samal A, et al. Comparative analysis of two discretizations of ricci curvature for complex networks. Sci. Rep. 2018;8:8650. doi: 10.1038/s41598-018-27001-3. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15.Piraveenan M, Prokopenko M, Zomaya AY. Local assortativeness in scale-free networks. EPL. 2008;84:28002. doi: 10.1209/0295-5075/84/28002. [DOI] [Google Scholar]
  • 16.Ni C, Lin Y, Luo F, Gao J. Community detection on networks with Ricci flow. Sci. Rep. 2019;9:1–12. doi: 10.1038/s41598-018-37186-2. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Sandhu RS, Georgiou TT, Tannenbaum AR. Ricci curvature: an economic indicator for market fragility and systemic risk. Sci. Adv. 2016;2:e1501495. doi: 10.1126/sciadv.1501495. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.Weber M, Saucan E, Jost J. Characterizing complex networks with Forman–Ricci curvature and associated geometric flows. J. Complex Netw. 2017;5:527–550. doi: 10.1093/comnet/cnw030. [DOI] [Google Scholar]
  • 19.Jackson M. Social and Economic Networks. Princeton: Princeton Univ. Press; 2008. [Google Scholar]
  • 20.Fisher DN, Silk MJ, Franks DW. The perceived assortativity of social networks: methodological problems and solutions. In: Missaoui R, Abdessalem T, Latapy M, editors. Trends in Social Network Analysis. Berlin: Springer; 2017. pp. 1–19. [Google Scholar]
  • 21.Zhou B, Meng X, Stanley HE. Power-law distribution of degree-degree distance: a better representation of the scale-free property of complex networks. Proc. Natl. Acad. Sci. USA. 2020;117:14812–14818. doi: 10.1073/pnas.1918901117. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22.Yang H, Lin Z, Lin Y. A multilevel framework of firm boundaries: firm characteristics, dyadic differences, and network attributes. Strateg. Manag. J. 2010;31:237–261. doi: 10.1002/smj.815. [DOI] [Google Scholar]
  • 23.Newman MEJ. Networks: An Introduction. Oxford: Oxford University Press; 2010. [Google Scholar]
  • 24.Piraveenan, M., Prokopenko, M. & Zomaya, A. Y. Classifying complex networks using unbiased local assortativity. In ALIFE 329–336 (2010).
  • 25.Erdös P, Rényi A. On the evolution of random graphs. Bull. Inst. Int. Stat. 1961;38:343–347. [Google Scholar]
  • 26.Newman MEJ. Assortative mixing in networks. Phys. Rev. Lett. 2002;89:208701. doi: 10.1103/PhysRevLett.89.208701. [DOI] [PubMed] [Google Scholar]
  • 27.Fotouhi B, Rabbat MG. Degree correlation in scale-free graphs. Eur. Phys. J. B. 2013;86:510. doi: 10.1140/epjb/e2013-40920-6. [DOI] [Google Scholar]
  • 28.Dall J, Christensen M. Random geometric graphs. Phys. Rev. E. 2002;66:016121. doi: 10.1103/PhysRevE.66.016121. [DOI] [PubMed] [Google Scholar]
  • 29.Barabási A-L. Network Science. Cambridge: Cambridge University Press; 2016. [Google Scholar]
  • 30.Leskovec J, Kleinberg J, Faloutsos C. Graph evolution: densification and shrinking diameters. ACM Trans. Knowl. Discov. Data (TKDD) 2007;1:2. doi: 10.1145/1217299.1217301. [DOI] [Google Scholar]
  • 31.Center for applied internet data analysis (caida). Retrieved from http://www.caida.org/tools/measurement/skitter/router_topology/. Accessed 27 Mar 2020.
  • 32.Song C, Qu Z, Blumm N, Barabási A-L. Limits of predictability in human mobility. Science. 2010;327:1018–1021. doi: 10.1126/science.1177170. [DOI] [PubMed] [Google Scholar]
  • 33.Yu H, et al. High-quality binary protein interaction map of the yeast interactome network. Science. 2008;322:104–110. doi: 10.1126/science.1158684. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 34.Redner, S. Citation statistics from more than a century of physical review. Preprint at https://arxiv.org/abs/physics/0407137 (2004).
  • 35.Ebel H, Mielsch L-I, Bornholdt S. Scale-free topology of e-mail networks. Phys. Rev. E. 2002;66:035103. doi: 10.1103/PhysRevE.66.035103. [DOI] [PubMed] [Google Scholar]
  • 36.Schellenberger J, Park JO, Conrad TM, Palsson BØ. BiGG: a biochemical genetic and genomic knowledgebase of large scale metabolic reconstructions. BMC Bioinform. 2010;11:213. doi: 10.1186/1471-2105-11-213. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 37.Albert R, Jeong H, Barabási A-L. Diameter of the world-wide web. Nature. 1999;401:130–131. doi: 10.1038/43601. [DOI] [Google Scholar]
  • 38.Antonioni A, Tomassini M. Degree correlations in random geometric graphs. Phys. Rev. E. 2012;86:037101. doi: 10.1103/PhysRevE.86.037101. [DOI] [PubMed] [Google Scholar]
  • 39.Freeman LC. A set of measures of centrality based on betweenness. Sociometry. 1977;40:35–41. doi: 10.2307/3033543. [DOI] [Google Scholar]
  • 40.Girvan M, Newman M. Community structure in social and biological networks. Proc. Natl. Acad. Sci. USA. 2002;99:7821–7826. doi: 10.1073/pnas.122653799. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 41.Esfahanian A-H. Connectivity algorithms. In: Beineke LW, Wilson RJ, Oellermann OR, editors. Topics in Structural Graph Theory. Cambridge: Cambridge University Press; 2013. pp. 268–281. [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Data Availability Statement

All data generated or analyzed during this study are included in this article or is available upon request from the corresponding author.


Articles from Scientific Reports are provided here courtesy of Nature Publishing Group

RESOURCES