Abstract
The abundance of data about social relationships allows the human behavior to be analyzed as any other natural phenomenon. Here we focus on balance theory, stating that social actors tend to avoid establishing cycles with an odd number of negative links. This statement, however, can be supported only after a comparison with a benchmark. Since the existing ones disregard actors’ heterogeneity, we extend Exponential Random Graphs to signed networks with both global and local constraints and employ them to assess the significance of empirical unbalanced patterns. We find that the nature of balance crucially depends on the null model: while homogeneous benchmarks favor the weak balance theory, according to which only triangles with one negative link should be under-represented, heterogeneous benchmarks favor the strong balance theory, according to which also triangles with all negative links should be under-represented. Biological networks, instead, display strong frustration under any benchmark, confirming that structural balance inherently characterizes social networks.
Similar content being viewed by others
Introduction
Network theory has emerged as a powerful framework in many disciplines to model different kinds of real-world systems, by representing their units as nodes and the interactions between them as links. In social science, the study of networks with signed edges has recently seen its popularity revived1,2,3,4, because the signed character of links can be used to represent the positive as well as the negative social interactions that are currently identifiable in empirical data.
From a historical perspective, the interest towards signed networks is rooted into the psychological theory named balance theory (BT), firstly proposed by Heider5. The choice of adopting signed graphs to model it has, then, led Cartwright and Harary6 to introduce its structural version (SBT), which has found application not only in the study of human relationships, but also in that of biological, ecological and economic systems7,8,9,10.
BT deals with the concept of balance: a complete, signed graph is said to be balanced if all its triads have an even number of negative edges, i.e. either zero (in this case, the three edges are all positive) or two (see Fig. 1). Informally speaking, BT formalizes the principles ‘the friend of my friend is my friend’ and ‘the enemy of my enemy is my friend’. The so-called structure theorem states that a complete, signed graph is balanced if and only if its set of nodes can be partitioned into two, disjoint subsets whose intra-modular links are all positive and whose inter-modular links are all negative. Cartwright and Harary extended the definition of balance to incomplete graphs6 by including cycles of length larger than three: a (connected) network is said to be balanced when all cycles are positive, i.e. they contain an even number of negative edges. Taken together, the criteria above form the so-called structural strong balance theory (SSBT).
The framework of SSBT has been extended by Davis11 by introducing the concept of k-balanced networks, according which signed graphs are balanced if their set of nodes can be partitioned into k disjoint subsets with positive intra-modular links and negative inter-modular links. This generalized definition of balance leads to the formulation of structural weak balance theory (SWBT), according to which triads with all negative edges are balanced, since each of their nodes can be thought of as a group on its own if necessary (see Fig. 1).
Several metrics to decide whether signed networks are strongly or weakly balanced have been proposed. For instance, the level of balance of a signed network has been quantified as the number of edges that need be removed, or whose sign need be reversed, in order to obtain a network where each cycle has an even number of negative links12,13. Alternatively, it has been defined as the number of balanced, closed walks (i.e. closed walks with an even number of negative links) that are present in the network14,15,16,17. In18 an incomplete, signed network is considered balanced if it is possible to fill in all its missing links to obtain a complete, balanced graph according to SSBT. In19 the authors define three different levels of balance: at the micro-scale, involving triads; at the meso-scale, involving larger subgraphs; at the macro-scale, involving the entire network. Still, as firstly noticed in6, ‘it may happen that only cycles of length 3 and 4 are important for the purpose of determining balance’; this is further stressed in20, where it can be read that ‘this intuition has been later justified empirically by demonstrating that it is easier for people to memorize the valences of ties in shorter cycles’, and confirmed in21, where it is noticed that ‘analyses based on counting simple cycles demonstrated that real networks often have a relatively low cycle length threshold after which the degree of balance measures quickly decrease’.
Other approaches have been adopted in22,23,24, where the problem is studied from a spectral perspective, and in25, where the problem is studied by employing concepts borrowed from statistical physics (each signed triad is assigned an energy and the networks at the ‘lowest temperature’ have triangles without negative edges).
Other authors, instead, have focused on the complementary notion of frustration, trying to quantify the extent to which signed networks are far from balanced19,26,27,28. In26, the authors define the so-called balanced decomposition number, i.e. the (minimum) number of balanced groups into which nodes can be partitioned, and evaluate it by counting the (minimum) number of edges whose removal increases a network balance. In29, instead, the same index is evaluated by adopting the so-called switching signs method introduced in30 and prescribing to count the (minimum) number of signs that must be reversed to balance a network. In22, the level of (im)balance of a network is proxied by the magnitude of the smallest eigenvalue of the Laplacian matrix.
Empirical observations seem to point out that real-world, signed networks tend to be k-balanced, i.e. to avoid establishing the patterns that are considered as frustrated by SWBT: as an example, in24 the authors study a pair of online, social networks induced by the relationships between users, showing that balance increases as the number of clusters into which nodes are partitioned is larger than two. In17, the authors notice that the weak formulation of SBT allows a better performance in predicting signs to be achieved.
In the present paper, we approach the concept of balance (or frustration) from a statistical perspective, comparing the empirical value of a chosen metric with the outcome of a properly defined benchmark model, i.e. a reference model preserving some of the network properties while randomizing the rest. The most common null model for signed graphs is perhaps the one obtained by keeping the positions of edges fixed while shuffling their signs2,17. Reference31 implements what we may call (for reasons that will be clear later) the canonical variant of the aforementioned exercise, assigning signs by means of a Bernoulli distribution. Reference15 introduces a null model for randomizing both the presence and the sign of links. In10, the signed version of the Local Rewiring Algorithm is implemented (at each step, two edges with the same sign are selected and rewired, to preserve the total number of signed links incident to each node). The canonical variant of this model is implemented in32, where the Balanced Signed Chung-Lu model (BSCL) is proposed (although it additionally constrains also the average number of signed triangles each edge is part of). Finally, refs. 33,34,35,36 define models constraining the structural properties of signed networks within the framework of Exponential Random Graphs (ERG).
Our contribution here focuses on binary, undirected signed networks and is motivated by two key considerations. First, real-world social networks have different levels of sparsity and we therefore aim at extending the ERG framework to include null models suitable for the analysis of signed graphs with plus (positive), minus (negative) and additionally zero (missing) edges. Second, as in the analysis of most other networks, we recognize the importance of preserving the inherent heterogeneity of different nodes and we therefore define new null models that can constrain the number of plus, minus and zero edges of each node separately. As we shall see, controlling for the different tendencies of actors of establishing friendly and unfriendly relationships can change the estimated statistical significance of balance quite dramatically. After defining a suite of such null models, we will use them to inspect the statistical significance of the most commonly studied (un)balanced patterns at both local and global levels, i.e. signed triangles and signed communities.
Results
Datasets description
We now employ the benchmarks introduced and discussed in ”Materials and Methods” and summed up in Table 1 to analyze various real-world networks. Although most of them represent social relationships, we have also considered biological data as a comparison to check for specific patterns characterizing social structures.
The first dataset is the Correlates of Wars (CoW) dataset37. It provides a picture of the international political relationships over the years 1946–1997 and consists of 13 snapshots of 4 years each. A positive edge between any two countries indicates an alliance, a political agreement or the membership to the same governmental organization. Conversely, a negative edge indicates that the two countries are enemies, have a political disagreement or are part of different, governmental organizations.
The second dataset collects information about the relationships among the ≃ 300.000 players of a massive multiplayer online game (MMOG)38. A positive edge between two players indicates a friendship, an alliance, or an economic relation. Conversely, a negative edge indicates the existence of an enmity, a conflict, or a fight. Since the network is directed, we have made it undirected by applying the following rules: if any two agents have the same opinion about the other, the undirected connection preserve the sign (i. e. + 1 ⋅ + 1 = + 1 and − 1 ⋅ − 1 = − 1); if any two agents have opposite opinions, we assume their undirected connection to have a negative sign (i.e. + 1 ⋅ − 1 = − 1 ⋅ + 1 = − 1). Furthermore, in order to preserve the total number of nodes, we treat non-reciprocal connections as reciprocal, by preserving the original sign (i.e. + 1 ⋅ 0 = 0 ⋅ + 1 = + 1 and − 1 ⋅ 0 = 0 ⋅ − 1 = − 1).
The remaining datasets we consider are those collected in39 and analyzed in27. These include three socio-political networks (SPNs): N.G.H. Tribes, Senate US, Monastery; two financial networks (FNs): Bitcoin Alpha and Bitcoin OTC; and three gene-regulatory networks (GRNs): E. Coli, Macrophage, Epidermal Growth Factor Receptor.
In the SPNs, N.G.H. Tribes collects data about New Guinean Highland Tribes (here, a positive/negative link denotes alliance/rivalry), Monastery corresponds to the last frame of Sampson’s data about the relationships between novices in a monastery40 (here, a positive/negative link indicates a positive/negative interaction), and Senate US collects data about the members of the 108th US Senate Congress (here, a positive/negative link indicates trust/distrust or similar/dissimilar political opinions).
The FNs are ‘who-trust-whom’ networks of Bitcoin traders on an online platform: a positive/negative link indicates trust/distrust between users41. The networks representing the FNs are weighted, directed ones: hence, after having binarized them by replacing each positive (negative) weight with a + 1 ( − 1), we have made them undirected by applying the same rules adopted for the MMOG dataset.
Lastly, in the GRNs each node represents a gene, with positive links indicating activating connections and negative links indicating inhibiting connections. Specifically, E. Coli collects data about a transcriptional network of the bacterium Escherichia Coli; Macrophage collects data about a blood cell that eliminates substances such as cancer cells, cellular debris and microbes; Epidermal Growth Factor Receptor collects data about the protein that is responsible for cell division and survival in epidermal tissues.
The vast majority of the networks considered here is characterized by a small link density c = 2L/N(N − 1) but a large fraction L+/L of positive links. The density of the CoW network decreases over time from ≃ 0.2 to ≃ 0.1 and the percentage of positive links is roughly stationary around ≃ 88%; on the other hand, the link density of the MMOG network is stationary around 0.003 and the percentage of positive links decreases from ≃ 98% to ≃ 60%. The SPNs have the largest values of link density among the configurations in our basket, ranging from ≃ 0.3 to ≃ 0.5, and percentages of positive links ranging from ≃ 50% to ≃ 75%. Bitcoin Alpha has a link density of ≃ 0.002 and a percentage of positive links of ≃ 90%, while Bitcoin OTC has a link density of ≃ 0.001 and a percentage of positive links of ≃ 85%. Lastly, the GRNs have a link density ranging from ≃ 10−3 to ≃ 10−2 and a percentage of positive links ranging from ≃ 58% to ≃ 66%. For more details on the basic descriptive statistics of the networks considered in the present work, see the Supplementary Note 4.
Assessing balance
In order to test the validity of the two formulations of SBT, at the local level, we need to compare the empirical abundance of the triadic motifs defined in the Methods section with the corresponding expected values calculated under the null models we have introduced. To this aim, a very useful indicator is represented by the z-score zm = [Nm(A*) − 〈Nm〉]/σ[Nm], where Nm(A*) is the number of occurrences of pattern m in the real network A*, 〈Nm〉 is the expected occurrence of the same pattern under the chosen null model and \(\sigma [{N}_{m}]=\sqrt{\langle {N}_{m}^{2}\rangle -{\langle {N}_{m}\rangle }^{2}}\) is the standard deviation of Nm under the same null model. zm quantifies the number of standard deviations by which the empirical abundance of pattern m differs from the expected one. For instance, after checking for the Gaussianity of Nm under the null model (since it is a sum of dependent random variables, this is ensured by the generalization of the Central Limit Theorem - see the Supplementary Note 6), a result ∣zm∣ ≤ 2 (∣zm∣ ≤ 3) indicates that the empirical abundance of pattern m is compatible with the one expected under the chosen null model at the 5% (1%) level of statistical significance. On the other hand, a value ∣zm∣ > 2 (∣zm∣ > 3) indicates that the empirical abundance of pattern m is not compatible with the null model at those significance levels. In the latter case, a value zm > 0 (zm < 0) indicates the tendency of the pattern to be over- (under-)represented in the data with respect to the null model.
z-scores can be evaluated either analytically or numerically: implementing the first alternative requires employing the formulas provided in the Supplementary Note 6; implementing the second alternative requires numerically sampling the ensembles of graphs defined by our null models. Since the entries of the adjacency matrix are independent random variables, the unbiased generation of a random matrix \({{{{{{{\bf{A}}}}}}}}\in {\mathbb{A}}\) can be carried out by drawing a real number uij ∈ U[0, 1] and posing: for models with varying topology, aij = − 1 if \(0\le {u}_{ij}\le {p}_{ij}^{-}\), aij = + 1 if \({p}_{ij}^{-} < {u}_{ij} < {p}_{ij}^{-}+{p}_{ij}^{+}\) and aij = 0 if \({p}_{ij}^{-}+{p}_{ij}^{+}\le {u}_{ij}\le 1\), for all pairs i < j; for models with fixed topology, aij = − 1 if \(0\le {u}_{ij}\le {p}_{ij}^{-}\) and aij = + 1 if \({p}_{ij}^{-} < {u}_{ij}\le 1\), for all pairs i < j such that \(| {a}_{ij}^{* }| =1\) (see the Supplementary Note 5 for an estimation of the time required to sample the ensemble induced by each of our models, for each of our datasets).
Testing structural balance at the microscopic scale
We report our results starting from the network datasets that have several temporal snapshots (CoW and MMOG). Figure 2 shows the temporal trends of the z-scores for the two networks under the homogeneous null models (SRGM and SRGM-FT). Panels (a) − (c) refer to the SRGM and show that the z-scores for all triangles, irrespective of their signs, are strong and positive. This means that all triangles are over-represented in the data, with respect to a null model that completely randomizes the topology. This result is not unexpected, as it merely indicates that, given the empirical density of links, it is very unlikely to form triangles completely by chance. These results simply tell us that the SRGM is uninformative about the (im)balance in the data, as it is entirely biased by a purely topological effect. This conclusion is in line with the results in17, which suggested that the SRGM-FT is to be preferred over the SRGM as it provides a better explanation of empirical network structures.
By contrast, the results generated under the SRGM-FT clearly support SWBT (see panels (b)–(d)). Indeed, the only significantly over-represented pattern in the data is precisely the only one that SWBT considers frustrated (the triangle with a single negative link), whereas the empirical abundance of the triangle with all negative edges (which SSBT would predict to be over-represented as well) remains largely compatible with the null model. Notice that also the empirical abundance of the balanced triangle with two negative edges is close to the one expected under the SRGM-FT, although its z-score is typically smaller than the z-score of the all-negative triangle. In any case, the abundance of the balanced triangle with three positive edges is significantly over-represented on both datasets. This type of results constitute the backbone of the narrative according to which the weak version of SBT is the one that is better supported by data2,17.
.However, since both the SRGM and the SRGM-FT do not constrain the local (node-specific) signed properties (i.e. the signed degrees of nodes), they cannot disentangle the effects of node heterogeneity from the revealed overall structural (im)balance. For this reason, In Fig. 3 we repeat the analysis of the CoW and MMOG datasets using the SCM and SCM-FT null models. As expected, the resulting z-scores are much smaller in absolute value, showing that node heterogeneity in the real networks is in general strong and is responsible for a significant part of the overall measured (im)balance. Therefore, controlling for the local signed degrees is a way to filter out the effects of node heterogeneity in the statistical analysis of structural balance. In general, we see that the triangle will all negative links has now negative z-scores in both datasets, under both null models. Similarly, the all-positive triangle remains with positive z-scores in all cases. The level of statistical significance (i.e. the absolute value of the z-score) is however quite different in the various cases: in general we see an overwhelming over-representation of the two balanced triangles (the all-positive one and the one with two negative links) in the MMOG data under both null models, while for the CoW data the only clearly significant patter is the over-representation of the all-positive triangle in the SCM. Nicely, the SCM-FT gives always negative z-scores to both the frustrated triangles (the all-negative one and the one with only one negative link), and most of the time positive z-scores to the two balanced triangles. Although the statistical evidence is much stronger for the MMOG data, this result indicates that, if any, the version of SBT supported by the data is SSBT, rather than SWBT. Therefore, as soon as the heterogeneity of the signed degrees of nodes is accounted for, SWBT loses its statistical support, and SSBT is favored by the data.
We now move to the results obtained on datasets which include other social networks as well as various biological networks, providing a different real-world benchmark where structural balance theory is not expected to apply. From Fig. 4 we confirm that the SRGM is completely uninformative about structural (im)balance, as it produces z-scores that are typically positive and very large for all triangles (balanced and unbalanced) and all networks (social and biological). This result simply means that the formation of any triangle, irrespective of its defining signs, is highly unlikely if the topology is completely randomized. By contrast, under the SRGM-FT the only pattern that is under-represented in social network data is the frustrated triangle with a single negative link, a result that largely supports SWBT (on biological data, this pattern is instead either not significant or over-represented). Heterogeneous null models (SCM and SCM-FT), instead, assign positive z-scores to the two balanced triangles (all-positive and with two negative links) and negative z-scores to the two frustrated triangles (all-negative and with one negative link), thereby systematically supporting SSBT. When used on biological networks, they instead highlight a strong tendency towards imbalance, as they tend to assign opposite signs (w.r.t. social networks) to most z-scores. These results confirm and extend what discussed above for the CoW and MMOG datasets, and additionally show that biological networks behave very differently from social networks, somehow favouring frustration. This is an indication that structural balance is indeed an inherent property of social networks.
As further evidence supporting the above conclusion, in Fig. 5 we show, for all networks and under all null models, the z-scores of the frustration indices SDoF and WDoF defined in Eqs. (9) and (10) respectively. Note that, while the raw values of SDoF and WDoF would not discount the effects of the imposed structural constraints on the raw values of frustration, the z-scores measure the level of statistical significance of the ‘residual’ frustration, after the structural constraints are accounted for. We see that, under all null models, the z-scores (when significant) are always negative for the social networks (signaling under-representation of the frustration indices in the data) and always positive for the biological networks (signaling over-representation of frustration in the data). Moreover, for the models with fixed topology, the z-scores for the heterogeneous null model (SCM-FT) are systematically smaller (in absolute value) than the ones for the corresponding homogeneous model (SRG-FT), indicating that, compared with the latter, the former model ‘explains more’ of the level of empirical frustration observed in the data. The same relation does not apply systematically between the models with varying topology (SCM and SRG), suggesting that models with fixed topology lead to more robust conclusions, as already observed in terms of their support for SWBT or SSBT.
Testing structural balance at the mesoscopic scale
Motivated by the last observation, we now use the null models with fixed topology to probe the patterns of structural (im)balance at a larger, mesoscopic level, i.e. as portrayed by the community structure deriving from optimally partitioning the nodes into communities with positive internal links and negative external ones. As anticipated, SSBT predicts that the overall level of intra-community frustration, as measured by the FI defined in Eq. (11), should be observed after optimally partitioning the nodes into two communities, dominated by positive signs internally and negative signs across. By contrast, SWBT allows for potentially any number of communities, because it bases the idea of balance precisely at the level of communities, so that all-negative triangles (and in principle all-negative cycles of any length) can be explained by placing the constituent nodes across distinct communities. To extract information about the signed community structure from our data, given a null model 〈aij〉 for the signed adjacency matrix entry aij, we look for the partition that maximizes the signed modularity, as defined in42:
where • indicates quantities inside and ∘ outside the communities (note that \({L}_{\bullet }^{+}={L}^{+}-{L}_{\circ }^{+}\) and that the total number of positive links is preserved under any null model considered here). For null models with fixed topology, a stronger result holds true, i.e. Q = − L ⋅ (FI − 〈FI〉) so that, since L > 0, maximizing Q becomes equivalent to minimizing the difference between FI and its expected value (see the Supplementary Note 7). The minimization of FI is another popular approach to finding the optimal partition43 which, however, neglects the information embodied in a null model. Here, we consider a varying number K = 2…10 of communities and, for each value of K, look for the partition maximizing Q, using as null model both the SRGM-FT and the SCM-FT. We then compute the value of FI as a function of K, as plotted in Fig. 6 for the CoW dataset. We find that the trends produced under the SRGM-FT are quite flat, and in no case the minimum of FI is achieved by K = 2. This result is in line with SWBT, under whose assumptions there is no specific characteristic number of communities that would characterize real networks. By contrast, the SCM-FT produces clearly increasing trends, all starting from a minimum of FI at K = 2. This result strongly supports SSBT, according to which structural balance can be achieved by placing negative links between two communities, and positive links inside them. Taken together, these results extend our finding that SWBT (SSBT) is supported by homogeneous (heterogeneous) null models.
Discussion
Motivated by the widespread observation that actors in real social networks are characterized by a strong heterogeneity (typically signaled by broad distributions of node-specific topological properties), we have introduced a class of null models for signed networks characterized by either global or local constraints and with either fixed or varying topology. Our formalism provides the equivalent of various important ERGs to the domain of signed graphs. We have used our null models to address the problem of structural balance in real social networks. Our results show that the nature (weak or strong) and statistical strength of evidence of structural balance strongly depends on the null model adopted. In particular, we have shown that the occurrences of signed triangles favor SWBT when a homogeneous, global null model is considered. By contrast, SSBT is favoured by heterogeneous models with local constraints.
Generally speaking, adopting fixed-topology benchmarks seems to enhance the detection of frustration with the corresponding, homogeneous (heterogeneous) variant favouring SWBT (SSBT). As a possible behavioral explanation, we may advance the following one. Social agents are characterized by a certain level of tolerance. Such a level can be set by choosing the proper benchmark: null models constraining global quantities assume agents to be characterized on average by the same expected level of tolerance; by contrast, null models constraining local quantities account for the different levels of tolerance characterizing different agents. Let us imagine that relationships were established according to a random mechanism that preserves the total number of friends and enemies: should this be the case, our results indicate that equally tolerant agents would establish many more ( + , + , − ) motifs than observed; instead, real-world agents are found to avoid engaging in relationships that lead to the formation of the ( + , + , − ) pattern. Let us, now, refine the aforementioned picture and imagine that relationships were established according to a random mechanism that preserves the local number of friends and enemies: in this case, diversely tolerant agents would establish many more ( + , + , − ) and ( − , − , − ) motifs than observed; instead, real-world agents are found to avoid engaging in relationships that lead to the formation of both the ( + , + , − ) and the ( − , − , − ) patterns. Overall, then, agents that cannot choose with whom to interact, but only how, adopt a behavior strongly avoiding engagement in frustrated relationships.
The same results have been extended to the mesoscale structural level, by finding that the optimal number of communities minimizing the overall level of frustration is K = 2 with respect to a heterogeneous null model (strongly supporting SSBT), while there is no characteristic optimal number with respect to a homogeneous null model (in line with SWBT). Importantly, we have considered a set of biological networks as a benchmark of real-world systems for which structural balance theory is not expected to apply. We have found a strong level of frustration in biological systems, indicating that structural balance (in either strong or weak form) indeed characterizes social networks.
Future directions along which the present analysis could be extended concern the possibility of defining ERGs for directed, as well as weighted, signed networks - the main technical difficulty lying in the proper definition of (binary, directed; weighted, both undirected and directed) constraints. The most natural application of such a formalism would be represented by the statistical validation of the so-called status theory, describing social interactions when hierarchies play a role2.
Methods
Formalism and basic quantities
A signed graph is a graph where each edge can be positive, negative or missing. In what follows, we will focus on binary, undirected, signed networks: hence, each edge will be ‘plus one’, ‘minus one’ or ‘zero’. More formally, for any two nodes i and j, the corresponding entry of the signed adjacency matrix A will be assumed to be aij = − 1, 0, + 1 (with aij = aji, ∀ i < j). Since the total number of node pairs is \(\frac{N(N-1)}{2}=\left(\begin{array}{c}N\\ 2\end{array}\right)\) and any node pair can be positively connected, negatively connected or disconnected, the total number of possible graph configurations is \(| {\mathbb{A}}| ={3}^{\left(\begin{array}{c}N\\ 2\end{array}\right)}\). To ease mathematical manipulations, let us define the following three quantities:
where we have employed Iverson’s brackets notation (see the Supplementary Note 1). These new variables are mutually exclusive, i.e. \(\{{a}_{ij}^{-},{a}_{ij}^{0},{a}_{ij}^{+}\}=\{(1,0,0),(0,1,0),(0,0,1)\}\), sum to 1, i.e. \({a}_{ij}^{-}+{a}_{ij}^{0}+{a}_{ij}^{+}=1\), and induce two non-negative matrices A+, A− such that A = A+ − A− and ∣A∣ = A+ + A−.
The numbers of positive and negative links are defined as
Analogously, the positive and negative degrees of node i are
(naturally, \(2{L}^{+} = {\sum }_{i = 1}^{N}{k}_{i}^{+}\) and \(2{L}^{-} = {\sum }_{i = 1}^{N} {k}_{i}^{-}\)). The advantage of adopting Iverson’s brackets is that each quantity is now computed from a matrix with positive entries, so that all quantities of interest are positive as well.
Let us now follow21, according to which ‘local measures attain efficiency by focusing only on cycles of particular, usually short, length, such as 3-cycles (triads)’, and consider the signed triads depicted in Fig. 7. As mentioned above, according to BT social systems tend to arrange themselves into configurations satisfying the principles ‘the friend of my friend is my friend’, ‘the friend of my enemy is my enemy’, ‘the enemy of my friend is my enemy’, ‘the enemy of my enemy is my friend’5. SSBT formalizes this concept by stating that the overall network balance increases with the fraction of triangles having an even number of negative edges (said to be balanced or ‘positive’ since the product of the edge sings is a ‘plus’) and decreases with the fraction of triangles having an odd number of negative edges (said to be unbalanced or ‘negative’ since the product of the edge sings is a ‘minus’). SWBT, on the other hand, considers the triangle with all negative edges balanced as well.
Notice that the product of an arbitrary number of matrices of type A+ and A− allows us to count the abundance of closed walks whose signature matches the sequence of signs of the matrices. For example, the expression \({[{{{{{{{{\bf{A}}}}}}}}}^{+}{{{{{{{{\bf{A}}}}}}}}}^{-}{{{{{{{{\bf{A}}}}}}}}}^{+}]}_{ii}\) counts the number of closed walks, starting from and ending at i, of length 3 and signature ( + − + ). Similarly, the expression \({[{{{{{{{{\bf{A}}}}}}}}}^{+}{{{{{{{{\bf{A}}}}}}}}}^{+}{{{{{{{{\bf{A}}}}}}}}}^{-}{{{{{{{{\bf{A}}}}}}}}}^{+}]}_{ii}={[{({{{{{{{{\bf{A}}}}}}}}}^{+})}^{2}{{{{{{{{\bf{A}}}}}}}}}^{-}{{{{{{{{\bf{A}}}}}}}}}^{+}]}_{ii}\) counts the number of closed walks, starting from and ending at i, of length 4 and signature ( + + − + ). Therefore, the level of balance of a network can be quantified by the abundance of (non-degenerate) triangles with an even number of negative links, i.e.
Similarly, the level of frustration of a network can be quantified by the abundance of (non-degenerate) triangles with an odd number of negative links, i.e.
(see the Supplementary Note 2 for more details).
The above expressions form the basis for the definition of several indices quantifying the level of balance of a network. For instance, the total number of balanced patterns according to SSBT is \({\#}_{\bigtriangleup }^{sb}={T}^{(+++)}+{T}^{(+--)}\), while the total number of unbalanced patterns is \({\#}_{\bigtriangleup }^{su}={T}^{(---)}+{T}^{(++-)}\). Hence, we may naturally define a ‘strong degree of balance’ index (SDoB) and a corresponding ‘strong degree of frustration’ index (SDoF) as
On the other hand, the total number of balanced patterns according to SWBT is \({\#}_{\bigtriangleup }^{wb}={T}^{(+++)}+{T}^{(+--)}+{T}^{(---)}\), while the total number of unbalanced patterns is \({\#}_{\bigtriangleup }^{wu}={T}^{(++-)}\). Hence, we can introduce a ‘weak degree of balance’ index (WDoB) and a corresponding ‘weak degree of frustration’ index (WDoF) as
The indices defined above quantify imbalance by counting the abundance of locally frustrated, short cycles. Other indices of frustration account for the effect of structural (im)balance at larger scales. In particular, at the mescoscopic level, the effect of structural balance would result in a signed network being partitioned into communities of nodes, where intra-community links would be preferentially positive and inter-community links would be preferentially negative. Correspondingly, one can define the frustration index
measuring the percentage of misplaced links, i.e. the total number \({L}_{\circ }^{+}\) of positive links between communities, plus the total number \({L}_{\bullet }^{-}\) of negative links within communities, divided by the total number L of links (the formalism is adapted from the one in44). According to SSBT, the node partition minimizing frustration (and, correspondingly, the FI) should be the one corresponding to only two communities, because such bipartition can be realized without creating all-negative triangles. By contrast, SWBT allows for a larger number of communities, because the theory justifies the presence of all-negative triangles precisely by assuming that the three participating nodes are all placed in different communities.
Null models of binary, undirected, signed graphs
Here we generalize the ERG framework to account for models of binary, undirected, signed graphs. We will follow the analytical approach introduced in45, and further developed in46, aimed at identifying the functional form of the maximum-entropy probability distribution (over all graphs of a chosen type) that preserves a desired set of empirical constraints on average. Specifically, this approach looks for the graph probability P(A) that maximizes Shannon entropy
(where the sum runs over the set \({\mathbb{A}}\), of cardinality \(| {\mathbb{A}}| ={3}^{\left(\begin{array}{c}N\\ 2\end{array}\right)}\), of all binary, undirected, signed graphs) under a set of constraints enforcing the expected value of a chosen set of properties. The formal solution to this problem is the exponential probability P(A) = e−H(A)/Z where H(A) (the Hamiltonian) is a linear combination of the constrained properties, each multiplied by a corresponding Lagrange multiplier, and \(Z={\sum }_{{{{{{{{\bf{A}}}}}}}}\in {\mathbb{A}}}{e}^{-H({{{{{{{\bf{A}}}}}}}})}\) is the normalizing constant (or partition function).
In what follows, we will consider two classes of models, i.e. those keeping the network topology fixed and those letting the topology vary along with the edge signs. The first class is better suited for studying systems where actors cannot choose ‘with whom’ to interact, but only ‘how’ (e.g. because workers necessarily interact with colleagues at the same workplace or because countries necessarily interact with each other). On the other hand, the second class is better suited for studying systems where actors can choose their neighbors as well17. Whatever the situation, comparing the two types of models for the same network is in any case instructive, as it allows the role played by signed constraints to be disentangled from the one played by non-signed (purely topological) constraints.
Signed random graph model
As the simplest example, the Signed Random Graph Model (SRGM) is defined by two, global constraints: L+(A) and L−(A). The Hamiltonian
leads to a graph probability PSRGM(A) that factorizes over the individual entries of the matrix A, which are i.i.d. random variables described by the finite scheme
with p0 ≡ 1 − p− − p+ and
where x ≡ e−α and y ≡ e−β are transformed Lagrange multipliers (see the Supplementary Note 3 for more details). In other words, positive, negative and missing links appear with probability p+, p− and p0 respectively. The parameters (x, y) determining these probabilities are tuned by maximizing the log-likelihood function \({{{{{{{{\mathcal{L}}}}}}}}}_{{{{{{{{\rm{SRGM}}}}}}}}}(x,y)\equiv \ln {P}_{{{{{{{{\rm{SRGM}}}}}}}}}({{{{{{{{\bf{A}}}}}}}}}^{* }| x,y)\) where A* denotes the specific, empirical network under analysis. This maximization, according to a general result47, leads to an equality between the expected and the empirical values of the constraints, i.e. \({\langle {L}^{+}\rangle }_{{{{{{{{\rm{SRGM}}}}}}}}}={L}^{+}({{{{{{{{\bf{A}}}}}}}}}^{* })\) and \({\langle {L}^{-}\rangle }_{{{{{{{{\rm{SRGM}}}}}}}}}={L}^{-}({{{{{{{{\bf{A}}}}}}}}}^{* })\). This leads to p0 ≡ 1 − p− − p+ and
Signed random graph model with fixed topology
We can also consider a variant of the SRGM that keeps the topology of the network under analysis fixed while (solely) randomizing the edge signs. The Hamiltonian is again H(A) = αL+(A) + βL−(A), but the random variables are now only the entries of the adjacency matrix corresponding to the connected pairs of nodes in the original network A*, i.e. the ones for which \(| {a}_{ij}^{* }| =1\). These entries obey the finite scheme
with
In other words, each entry for which \(| {a}_{ij}^{* }| =1\) obeys a Bernoulli distribution with probabilities determined by the (Lagrange multipliers of the) imposed constraints (see the Supplementary Note 3 for more details). The maximization of the likelihood function \({{{{{{{{\mathcal{L}}}}}}}}}_{{{{{{{{\rm{SRGM-FT}}}}}}}}}(x,y)\equiv \ln {P}_{{{{{{{{\rm{SRGM-FT}}}}}}}}}({{{{{{{{\bf{A}}}}}}}}}^{* }| x,y)\) (where FT stands for ‘fixed topology’) leads to
with L(A*) representing the (empirical) number of links.
The SRGM and the SRGM-FT are related via the simple expression
involving the probability of the usual ‘unsigned’ (Erdős-Rényi) Random Graph Model (RGM) and stating that the probability of connecting any two nodes with, say, a positive link can be rewritten as the probability of connecting them with an unsigned link times the probability of assigning the latter a ‘plus one’: in formulas, \({p}_{{{{{{{{\rm{SRGM}}}}}}}}}^{+}/{p}_{{{{{{{{\rm{RGM}}}}}}}}}^{+}={p}_{{{{{{{{\rm{SRGM-FT}}}}}}}}}^{+}\) (see the Supplementary Note 3 for more details). Notice that if the network under analysis is completely connected, the SRGM and the SRGM-FT coincide.
Although the recipes implemented in15 and2,31 are similar in spirit to the SRGM and the SRGM-FT, we provide the rigorous derivation of both models, together with the proof that the latter is nothing but the conditional version of the former.
Signed configuration model
The two aforementioned versions of the SRGM are defined by constraints which are global in nature. However, real social networks are characterized by an inherent heterogeneity of actors, which results in broad distributions of the number of connections of actors. To avoid statistical conclusions about structural balance that are biased by the application of homogeneous null models to intrinsically heterogeneous networks, it is therefore important to introduce models with local (node-specific) constraints.
We, therefore, introduce the Signed Configuration Model (SCM) via the Hamiltonian
which constraints the expected value of the signed degrees \({\{{k}_{i}^{+}({{{{{{{\bf{A}}}}}}}})\}}_{i = 1}^{N}\) and \({\{{k}_{i}^{-}({{{{{{{\bf{A}}}}}}}})\}}_{i = 1}^{N}\) of all nodes. The resulting graph probability PSCM(A) is still factorized over independent entries of the matrix A, however these entries are no longer identically distributed. Rather, they obey the finite scheme
with
and \({p}_{ij}^{0}\equiv 1-{p}_{ij}^{-}-{p}_{ij}^{+}\) (see the Supplementary Note 3 for more details). In other words, the two nodes i and j are connected by a positive, negative or missing link with probability \({p}_{ij}^{+}\), \({p}_{ij}^{-}\) or \({p}_{ij}^{0}\) respectively. The parameters of the SCM are found by maximizing the log-likelihood \({{{{{{{{\mathcal{L}}}}}}}}}_{{{{{{{{\rm{SCM}}}}}}}}}({\{{x}_{i}\}}_{i = 1}^{N},{\{{y}_{i}\}}_{i = 1}^{N})\equiv \ln {P}_{{{{{{{{\rm{SCM}}}}}}}}}({{{{{{{{\bf{A}}}}}}}}}^{* }| {\{{x}_{i}\}}_{i = 1}^{N},{\{{y}_{i}\}}_{i = 1}^{N})\), and the result ensures that \({\langle {k}_{i}^{+}\rangle }_{{{{{{{{\rm{SCM}}}}}}}}}={k}_{i}^{+}({{{{{{{{\bf{A}}}}}}}}}^{* })\) and \({\langle {k}_{i}^{-}\rangle }_{{{{{{{{\rm{SCM}}}}}}}}}={k}_{i}^{-}({{{{{{{{\bf{A}}}}}}}}}^{* })\), ∀ i. Explicitly,
which is a system of 2N coupled non-linear equations that have a unique solution to be found numerically, e.g. following the guidelines provided in48 (see the Supplementary Note 4). If xi ≪ 1 and yi ≪ 1 ∀ i, a ‘sparse’ approximation of the SCM holds true and one can factorize the probabilities as \({p}_{ij}^{+}\simeq {x}_{i}{x}_{j}\) and \({p}_{ij}^{-}\simeq {y}_{i}{y}_{j}\), ∀ i < j. Such a manipulation leads us to
a result that we may call the Signed Chung-Lu Model (SCLM).
To the best of our knowledge, the canonical SCM described here has no precedents in the literature: Ref. 10 provides a microcanonical version of the model, while the variant considered in32 is just an approximation of the full canonical model derived here. Notice that the bipartite version of the SCM can be recovered as a special case of the Bipartite Score Configuration Model, proposed in35.
Signed configuration model with fixed topology
As for the SRGM, a variant of the SCM that keeps the topology of the network under analysis fixed while (solely) randomizing the signs of the edges can be defined. Again, the Hamiltonian reads \(H({{{{{{{\bf{A}}}}}}}}) = {\sum }_{i = 1}^{N}[{\alpha }_{i}{k}_{i}^{+}({{{{{{{\bf{A}}}}}}}})+{\beta }_{i}{k}_{i}^{-}({{{{{{{\bf{A}}}}}}}})]\) but the only random variables are those corresponding to the connected pairs of nodes in the empirical graph, i.e. the ones for which \(| {a}_{ij}^{* }| =1\). Each of them obeys the finite scheme
with
Maximizing the log-likelihood \({{{{{{{{\mathcal{L}}}}}}}}}_{{{{{{{{\rm{SCM-FT}}}}}}}}}({\{{x}_{i}\}}_{i = 1}^{N},{\{{y}_{i}\}}_{i = 1}^{N})\equiv \ln {P}_{{{{{{{{\rm{SCM-FT}}}}}}}}}({{{{{{{{\bf{A}}}}}}}}}^{* }| {\{{x}_{i}\}}_{i = 1}^{N},{\{{y}_{i}\}}_{i = 1}^{N})\) leads to the equations
which can be solved numerically - again, along the guidelines provided in48 (see the Supplementary Note 4 for more details).
Similarly to what has been observed for the SRGM and the SRGM-FT, the SCM and the SCM-FT are related via
an expression involving the probability of an ordinary (unsigned) ‘induced’ Configuration Model (ICM) with probabilities such that \({({p}_{ij}^{+})}_{{{{{{{{\rm{SCM}}}}}}}}}/{({p}_{ij}^{+})}_{{{{{{{{\rm{ICM}}}}}}}}}={({p}_{ij}^{+})}_{{{{{{{{\rm{SCM}}}}}}}}}/[{({p}_{ij}^{+})}_{{{{{{{{\rm{SCM}}}}}}}}}+{({p}_{ij}^{-})}_{{{{{{{{\rm{SCM}}}}}}}}}]={({p}_{ij}^{+})}_{{{{{{{{\rm{SCM-FT}}}}}}}}}\), forany pair of nodes (see the Supplementary Note 3). Notice that, if the network under consideration is completely connected, then the SCM and the SCM-FT coincide.
Data availability
Data concerning CoW are described in37 and can be found at the address http://mrvar.fdv.uni-lj.si/pajek/SVG/CoW/. Data concerning E. coli, Macrophage, EGFR, N.G.H. Tribes and Monastery are are described in27 and can be found at the address https://figshare.com/articles/dataset/Signed_networks_from_sociology_and_political_science_biology_international_relations_finance_and_computational_chemistry/5700832. Data concerning Bitcoin Alpha and Bitcoin OTC are described in19 and can be found at the address https://figshare.com/articles/dataset/Dataset_of_directed_signed_networks_from_social_domain/12152628. Data concerning MMOG, described in38 are subject to proprietary restrictions and cannot be shared.
Code availability
The codes implementing the null models employed for the present analysis are available upon request.
References
Antal, T., Krapivsky, P. L. & Redner, S. Social balance on networks: The dynamics of friendship and enmity. Phys. D: Nonlinear Phenom. 224, 130–136 (2006).
Leskovec, J., Huttenlocher, D. & Kleinberg, J. Signed networks in social media. In Proceedings of the SIGCHI Conference on Human Factors in Computing Systems, 1361–1370 https://doi.org/10.1145/1753326.1753532 (2010).
Zaslavsky, T. A Mathematical bibliography of signed and gain graphs and allied areas. Electron. J. Combinatorics DS8, 1–524 (2012).
Tang, J., Chang, Y., Aggarwal, C. & Liu, H. A survey of signed network mining in social media. ACM Comput. Surv. 49, 1–37 (2016).
Heider, F. Attitudes and cognitive organization. J. Psychol. 21, 107–112 (1946).
Cartwright, D. & Harary, F. Structural balance: A generalization of Heider’s theory. Psychol. Rev. 63, 277 (1956).
Harary, F., Lim, M.-H. & Wunsch, D. C. Signed graphs for portfolio analysis in risk management. IMA J. Manag. Math. 13, 201–210 (2002).
Ou-Yang, L., Dai, D.-Q. & Zhang, X.-F. Detecting protein complexes from signed protein-protein interaction networks. IEEE/ACM Trans. Comput. Biol. Bioinforma. 12, 1333–1344 (2015).
Iorio, F. et al. Efficient randomization of biological networks while preserving functional characterization of individual nodes. BMC Bioinforma. 17, 1–14 (2016).
Saiz, H. et al. Evidence of structural balance in spatial ecological networks. Ecography 40, 733–741 (2017).
Davis, J. A. Clustering and structural balance in graphs. Hum. Relat. 20, 181–187 (1967).
Akiyama, J., Avis, D., Chvátal, V. & Era, H. Balancing signed graphs. Discret. Appl. Math. 3, 227–233 (1981).
Harary, F. On the measurement of structural balance. Behav. Sci. 4, 316–323 (1959).
Estrada, E. & Benzi, M. Walk-based measure of balance in signed networks: Detecting lack of balance in social networks. Phys. Rev. E 90, 042802 (2014).
Singh, R. & Adhikari, B. Measuring the balance of signed networks and its application to sign prediction. J. Stat. Mech. Theory Exp. 2017, 063302 (2017).
Estrada, E. Rethinking structural balance in signed social networks. Discret. Appl. Math. 268, 70–90 (2019).
Kirkley, A., Cantwell, G. T. & Newman, M. E. Balance in signed networks. Phys. Rev. E 99, 012320 (2019).
Easley, D. et al. Networks, crowds, and markets. Cambridge Books https://doi.org/10.1017/CBO9780511761942 (2012).
Aref, S., Dinh, L., Rezapour, R. & Diesner, J. Multilevel structural evaluation of signed directed social networks based on balance theory. Sci. Rep. 10, 1–12 (2020).
Talaga, S., Stella, M., Swanson, T. J. & Teixeira, A. S. Polarization and multiscale structural balance in signed networks. Commun. Phys. 6, 349 (2023).
Giscard, P.-L., Rochet, P. & Wilson, R. C. Evaluating balance on social networks from their simple cycles. J. Complex Netw. 5, 750–775 (2017).
Kunegis, J. et al. Spectral analysis of signed graphs for clustering, prediction and visualization. In Proceedings of the 2010 SIAM International Conference on Data Mining, 559–570 (SIAM, 2010). https://doi.org/10.1137/1.9781611972801.49.
Terzi, E. & Winkler, M. A spectral algorithm for computing social balance. In International Workshop on Algorithms and Models for the Web-Graph, 1–13 (Springer, 2011). https://doi.org/10.1007/978-3-642-21286-4_1.
Anchuri, P. & Magdon-Ismail, M. Communities and balance in signed networks: A Spectral Approach. In 2012 IEEE/ACM International Conference on Advances in Social Networks Analysis and Mining, 235–242 (IEEE, 2012). https://doi.org/10.1109/ASONAM.2012.48.
Belaza, A. M. et al. Statistical physics of balance theory. PLoS One 12, e0183696 (2017).
Zasĺavsky, T. Balanced decompositions of a signed graph. J. Combinatorial Theory, Ser. B 43, 1–13 (1987).
Aref, S. & Wilson, M. C. Balance and frustration in signed networks. J. Complex Netw. 7, 163–189 (2019).
Aref, S., Mason, A. J. & Wilson, M. C. A modeling and computational study of the frustration index in signed networks. Networks 75, 95–110 (2020).
Traag, V., Doreian, P. & Mrvar, A. Partitioning signed networks. Advances in Network Clustering and Blockmodeling 225–249 https://doi.org/10.1002/9781119483298.ch8 (2019).
Abelson, R. P. & Rosenberg, M. J. Symbolic psycho-logic: A model of attitudinal cognition. Behav. Sci. 3, 1–13 (1958).
Facchetti, G., Iacono, G. & Altafini, C. Computing global structural balance in large-scale signed social networks. Proc. Natl. Acad. Sci. 108, 20953–20958 (2011).
Derr, T., Aggarwal, C. & Tang, J. Signed network modeling based on structural balance theory. In Proceedings of the 27th ACM International Conference on Information and Knowledge Management, 557–566 https://doi.org/10.1145/3269206.3271746 (2018).
Huitsing, G. et al. Univariate and multivariate models of positive and negative networks: Liking, disliking, and bully–victim relationships. Soc. Netw. 34, 645–657 (2012).
Lerner, J. Structural balance in signed networks: Separating the probability to interact from the tendency to fight. Soc. Netw. 45, 66–77 (2016).
Becatti, C., Caldarelli, G. & Saracco, F. Entropy-based randomization of rating networks. Phys. Rev. E 99, 022306 (2019).
Fritz, C. Mehrl, M., Thurner, P. W. & Kauermann, G. Exponential random graph models for dynamic signed networks: an application to international relations. Polit. Anal. (in the press).
Doreian, P. & Mrvar, A. Structural balance and signed international relations. J. Soc. Struct. 16, 1 (2015).
Szell, M., Lambiotte, R. & Thurner, S. Multirelational organization of large-scale social networks in an online world. Proc. Natl. Acad. Sci. 107, 13636–13641 (2010).
Signed networks from sociology and political science, systems biology, international relations, finance, and computational chemistry https://figshare.com/articles/dataset/Signed_networks_from_sociology_and_political_science_biology_international_relations_finance_and_computational_chemistry/5700832 (2018).
Sampson, S. F.A novitiate in a period of change: An experimental and case study of social relationships (Cornell University, 1968). https://doi.org/10.1016/0378-8733(95)00259-6.
Kumar, S., Spezzano, F., Subrahmanian, V. & Faloutsos, C. Edge weight prediction in weighted signed networks. In 2016 IEEE 16th International Conference on Data Mining (ICDM), 221–230 (IEEE, 2016). https://ieeexplore.ieee.org/document/7837846.
Gómez, S., Jensen, P. & Arenas, A. Analysis of community structure in networks of correlated data. Phys. Rev. E 80, 016114 (2009).
Doreian, P. & Mrvar, A. A partitioning approach to structural balance. Soc. Netw. 18, 149–168 (1996).
Marchese, E., Caldarelli, G. & Squartini, T. Detecting mesoscale structures by surprise. Commun. Phys. 5, 1–16 (2022).
Park, J. & Newman, M. E. J. Statistical mechanics of networks. Phys. Rev. E 70, 66117 (2004).
Squartini, T. & Garlaschelli, D. Maximum-Entropy Networks. Pattern Detection, Network Reconstruction and Graph Combinatorics (Springer International Publishing, 2017). https://doi.org/10.1007/978-3-319-69438-2.
Garlaschelli, D. & Loffredo, M. I. Maximum likelihood: Extracting unbiased information from complex networks. Phys. Rev. E 78, 015101 (2008).
Vallarano, N. et al. Fast and scalable likelihood maximization for Exponential Random Graph Models with local constraints. Sci. Rep. 11, 15227 (2021).
El Maftouhi, A., Manoussakis, Y. & Megalakaki, O. Balance in random signed graphs. Internet Math. 8, 364–380 (2012).
Acknowledgements
We thank Michael Szell for sharing the Pardus dataset employed for the present analysis. This work is supported by the European Union - NextGenerationEU - National Recovery and Resilience Plan (Piano Nazionale di Ripresa e Resilienza, PNRR), project ‘SoBigData.it - Strengthening the Italian RI for Social Mining and Big Data Analytics’ - Grant IR0000013 (n. 3264, 28/12/2021). This work is also supported by the project NetRes - ‘Network analysis of economic and financial resilience’, Italian DM n. 289, 25-03-2021 (PRO3 Scuole), CUP D67G22000130001 (https://netres.imtlucca.it). DG acknowledges support from the Dutch Econophysics Foundation (Stichting Econophysics, Leiden, the Netherlands) and the Netherlands Organization for Scientific Research (NWO/OCW). RL acknowledges support from the EPSRC grants n. EP/V013068/1 and EP/V03474X/1.
Author information
Authors and Affiliations
Contributions
Study conception and design: D.G., R.L., F.S., T.S. Data collection: A.G. Analysis and interpretation of results: A.G., D.G., R.L., F.S., T.S. Draft manuscript preparation: D.G., T.S.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Peer review
Peer review information
Communications Physics thanks the anonymous reviewers for their contribution to the peer review of this work.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary information
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Gallo, A., Garlaschelli, D., Lambiotte, R. et al. Testing structural balance theories in heterogeneous signed networks. Commun Phys 7, 154 (2024). https://doi.org/10.1038/s42005-024-01640-7
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s42005-024-01640-7
Comments
By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.