Structural Balance Considerations for Networks with Preference Orders as Node Attributes
Abstract
We discuss possible definitions of structural balance conditions in a network with preference orderings as node attributes. The main result is that for the case with three alternatives () we reduce the possible configurations of triangles to equivalence classes, and use these as measures of balance of a triangle towards possible extensions of structural balance theory. Moreover, we derive a general formula for the number of equivalent classes for preferences on alternatives. Finally, we analyze a real-world data set and compare its empirical distribution of triangle equivalence classes to a null hypothesis in which preferences are randomly assigned to the nodes.
I Introduction
In network science, nodes and edges may be associated with attributes that encode various properties. An important example of a node attribute is when each node is assigned a particular type. Various homophily measures, with modularity as the most important example [1], are then available to quantify whether edges between nodes of the same type are more prevalent than edges between nodes of different types. Edge attributes may consist of, for example, a weight that describes how strongly two nodes are connected, or a sign () that determines whether the the relation between two nodes is friendly or antagonistic. For complete networks with signed edges, a celebrated result is the structural balance theorem [2]. This theorem states that if every triangle in a (complete) network has the signs either or , then the network can be partitioned into two subnetworks and , such that all edges within are , all edges within are , but all edges between and are (as illustrated in Figure 1). The network is then said to be balanced. The popular interpretation is that the “enemy’s enemy is a friend”: in a balanced network either all three nodes in every triangle are friends, or two team up against a third, common, enemy. Thus, in signed networks balance means polarization, i.e., there are two camps of friends with mutual antagonism between them.
In this paper we are concerned with extensions of the structural balance concept that go beyond signed networks. Specifically we consider networks where nodes have preference orderings as attributes. A preference ordering is defined in terms of a strict linear order of alternatives (e.g., ) and may be interpreted as an expression of the opinion that is preferable to , which in turn is preferable to , and so on. The extent to which two neighbors’ preference orderings differ can be viewed as a measure of agreement or disagreement. In the extreme cases when a pair of neighbors have the exact same preferences or maximally different preferences (e.g., according to some distance metric), it would be quite natural to associate their edge with a or , respectively. In the case of partial disagreement, one could either extend the number of edge weights or argue for a way to project the partial disagreements onto the two signs . In view of this intuitive connection between preference orderings as node attributes and signed edges, one might ask a more general question: Can triangles of nodes with preference orderings as node attributes be associated with a notion of balance? We approach, and partially answer this question by enumerating all possible combinations of preference orderings that can appear in a triangle, and categorize them into classes that are equivalent in a certain sense.
I-A Related Work
I-A1 Preference Orderings as Node Attributes
The motivation for studying networks with preference orderings is clear. For example, it is reported in the literature that the use of preference orderings to express opinions is superior to the use of numerical scores [3, 4]. In the field of collaborative filtering-based recommender systems, several papers have leveraged on users’ preference orderings data [5, 6, 7], and in social choice theory, an important problem is how to aggregate preference orderings in a group of people [8], with applications in the design of voting methods and ethical AI systems [9].
Yet, only scattered results are available in the literature on networks with preference orderings as node attributes. In [4], opinion diffusion processes were considered and it was concluded that the outcome of a diffusion process depends both on the structure of the social network (e.g., directed or undirected; cyclic or acyclic) and on the properties of the initial preferences of each agent, for example whether the initial preference profiles satisfy the Condorcet condition or not. In [10] (with results refined in [11]), preference aggregation via a form of “emphatic” voting was considered, taking into account the connections between nodes in addition to their opinions in the aggregation. In [12], two closely related problems were tackled: Preference inference and group recommendation based on partially observed ranking data. The main idea was to utilize the underlying social network structure under the assumption that the homophily and/or social influence shapes the network dynamics. The proposed models were tested empirically on several data sets, one of which was the Flixter data set [13], consisting of a social network of movie watchers and their ratings of movies. Based on the ratings for each user, the relative number of movies of each genre watched by a specific user was calculated, and from these so-called user-genre scores, ranking data of movie genres was constructed. However, due to the sparsity typical of movie ratings, only partial orders could be constructed in a this manner. Finally, in [14], two models were proposed for capturing how preferences are distributed among nodes in a typical social network. By sampling a small subset of representative nodes, the algorithms can harness the network structure to effectively construct an aggregate preference of the entire network population, and for preferences related to personal topics (such as lifestyle choices), the proposed approach was shown to be advantageous over traditional random polling. The said papers also connect to the (relatively rich) literature on preference aggregation and voting theory. However, network aspects seem to be rarely considered in that context, and we are only aware of [12, 11, 10] and [14].
I-A2 Structural Balance
The discovery of the structural balance theorem in 1956 [2] has spawned a large literature on empirical analysis of real-world networks [15, 16, 17, 18], analysis of dynamic processes [19, 20], partially balanced networks [21], and perhaps most importantly in the current context, extensions to cases beyond the canonical signed-link setup. The most representative extensions are [22] and [23]. In [22], the edge weights can be any real number drawn from a total ordering. A distance metric is defined such that the negative (positive) are mapped to large (small) distances. A triangle is then said to be structurally balanced if the three distances involved satisfy the metric triangle inequality. In [23], the authors considered signed digraphs and redefine structural balance as a local node property: A node is called structurally balanced if a ceratin subgraph related to the node can be bipartitioned such that all directed edges within a partition have non-negative weights, and all directed edges between partitions have non-positive weights.
Another interesting direction of research is the generalization of structural balance in networks with node attributes. For example, in [24], the authors defined balance in fully signed networks, i.e., networks where both the edges and the nodes have signs. Such a network is then said to be balanced if and only if it can be partitioned into clusters, within which nodes have identical attributes and all edges are negative. The authors provide an energy function whose minimum is taken as a measure of partial network balance, and they also propose an algorithm for the efficient computation of this value. In [25] the method was further generalized to fully signed networks in which the number of attributes for each node is arbitrary (that is, not only or ).
However, none of the existing literature on balance, to our knowledge, has dealt with networks with preference orderings as attributes.
I-B Contributions
In this paper we discuss possible definitions of structural balance in a network with preference orderings as node attributes. The main result (Theorem 1) is that for the three-alternative case () we reduce the possible configurations of triangles to 10 equivalence classes. These 10 classes represent the 10 different types of triangles that can occur in a network, and based on them, a notion of balance can be defined. We also give a general formula for the number of equivalence classes for the -alternative case (Theorem 2). Finally, we examine numerically the data set in [14] and compare its empirical distribution of the equivalence classes to a null hypothesis in which preference orderings are randomly assigned to the nodes.
II Main results
We define a preference ordering on alternatives, , as a permutation on elements. A preference triangle on alternatives, , is then defined to be a complete graph on nodes (i.e., ), where each node is associated with a preference ordering. We introduce a relation and we say that two preference triads and are related if can be transformed into by relabeling its nodes and by applying the same permutation of the elements to all nodes (which corresponds to to relabeling the elements). This is denoted by .
For example, the two preference triads depicted in Figure 2 are related: In , change the node labels to , respectively, and let elements and swap places in all three permutations to obtain .
It is easy to see that the relation is an equivalence relation: Let and be preference triads. Clearly since no transformation is needed, so is reflexive. Furthermore, if , then we can recover from by reversing the swaps and undo the relabeling, so is symmetric. Finally, if and we can first transform into , and then transform into , so is transitive.
This relation restricts the number of unique preference triangles. Our first theorem states that reduces the number of preference triangles on alternatives to cases.
Theorem 1.
The possible preference triads on alternatives can be partitioned into equivalence classes induced by the relation .
Proof.
There are possible preference triads on alternatives, , but since we always can swap the alternatives such that one of the preferences is (abbreviated ), the cases can first be reduced to cases. These cases are listed in Table a, where the three rows in each case represent the three nodes in the corresponding preference triad. The top row is always . Thus, a swap of two rows is equivalent to letting the two corresponding nodes change labels with each other.
The equivalence relation partitions the cases into different equivalence classes: Consider for example Case 2. We can list all of its possible transformations,
where the middle matrix is obtained by swapping rows and , and the last matrix is obtained by first swapping rows and and then swapping and in all three rows. We identify the middle matrix as Case 7, and the last matrix as Case 8, so Case 2 is related to both of these cases under . On the other hand, it is not related to any other case, for example Case . To see this, we can list all possible transformations of case , to obtain
and note that none of these matrices matches the transformations of Case 2. By proceeding in this manner for all cases, it can be shown by exhaustion that there are exactly equivalence classes, highlighted in color in Table a. The equivalence classes with their representatives are listed in Table b. ∎
![[Uncaptioned image]](https://cdn.awesomepapers.org/papers/35c0456c-a66c-4ad9-b8b3-9c5d7f618cc7/x1.png)
Equivalence class | Cases |
---|---|
1 | 1 |
2 | 2, 7, 8 |
3 | 9, 11, 14, 16, 21, 26 |
4 | 10, 12, 20, 30, 32, 35 |
5 | 3, 13, 15 |
6 | 17, 18, 24, 27, 33, 34 |
7 | 4, 19, 29 |
8 | 5, 22, 25 |
9 | 6, 31, 36 |
10 | 23, 28 |
A natural question is if it is possible to define a notion of a balanced preference triangle. In classical balance theory, a triangle is either balanced or unbalanced. There is no obvious analog to this idea for preference triangles since, by Theorem 1, each such triangle falls into one of different equivalent classes. However, if the equivalence classes could be totally ordered, it might be possible to define balance so that the order could be interpreted as ranging from “most balanced” to “least balanced”. This is motivated by the fact that there seems to be at least one intuitive partial order on the equivalence classes: In case in Table a, all nodes agree perfectly on the preference orderings, which could be interpreted as positive relations between all three nodes, i.e., a triangle in terms of classical balance theory. The cases and (and their equivalents) might be interpreted as triangles, with further refinement of the internal order possible since in case all preference orderings starts with , while in cases to only two preference orderings start with . Similarly, in cases and (and their equivalents), none of the preference orderings are identical, which might be interpreted as triangles, and again the internal order might be further refined since in case and two of the preferences start with . In case the preference orderings are in fact maximally different, so in some sense this could be seen as the “least balanced” preference triangle. A triangle reminiscent of in classical balance theory does not exist. This is an important observation, since it leaves only as a possible unbalanced triangle. However, it has been argued (see, e.g., [26]) that the definition of balance should be generalized to permit also the triangle as a balanced triangle, in which case one talks about weak balance theory. Therefore, in view of the above mapping from preference triangles to signed triangles, all triangles are weakly balanced.
Consequently, a notion of balance for preference triangles is perhaps best defined in terms of partial balance, a concept discussed in [21], since the equivalence classes intuitively can be partially ordered. However, we have been unsuccessful in finding a total order for the equivalence classes, and even though several partial orderings can be constructed if one allows ties, we have not found an objective argument for preferring one partial ordering over another. Therefore we have not addressed this question in detail in the current paper, and while we may not have a firm answer, it might be an interesting direction to explore further.
Another natural question is if Theorem 1 can be generalized to the case with alternatives, with . In the appendix we derive a closed form expression for the number of equivalence classes induced by , and show that it can be expressed as a function of (the number of elements in the permutations). In particular, we prove the following theorem.
Theorem 2.
Let with , let denote the set of all preference triads on elements and let denote the integer part of . Then the number of equivalence classes of induced by the relation is
where
(1) |
Since the number of equivalence classes increases super-exponentially with (for there are number of equivalence classes, respectively), it quickly becomes impractical to explicitly list all of them. Therefore this paper is confined to the minimal non-trivial case, .
III Experimental results
In this section, we analyze an authentic social network with preferences as node attributes. In the standard theory of structural balance, a complete signed network is said to be balanced if all of its triangles are balanced. We extend this idea to preference triangles and enumerate all such triangles into the different equivalence classes described in the previous section. The aim is to determine if the distribution of equivalence classes of preference triangles is significantly different from what one would expect by chance: Specifically we construct synthetic networks by performing randomized degree-preserving edge-rewirings [27, Chapter 4] on the real-world network, where the nodes have preferences that follow the empirical distribution of the authentic data set. The null hypothesis is that there is no significant difference between the distribution of equivalence classes for the authentic network and those of the synthetic networks.
The data set, shared with us by the authors of [14], was collected from a specially designed Facebook app where users were asked to rank their preferences on topics, with each topic containing items, see [14, Table VI, Appendix A] for details. Thus the data set consists of each individual’s preferences on each topic together with the underlying social network (there is a link between two users if they are friends on Facebook). The network consists of nodes, edges and the fraction of closed triangles is .[14, Table 1]
The data is analyzed as follows: For each of the topics, we pick a subset of out of the available items, giving us sets of preferences, where each set contains individual preferences (one per node). The internal order of these partial preferences is preserved, so for example if one of the original preferences is and we select as our subset of items, then the extracted preference becomes . For each of the so-obtained preference sets, we calculate the empirical distribution of all possible preferences over the nodes. We then construct 10 synthetic networks by randomly rewiring the edges in the network such that the node degrees are preserved. For each of the preference sets, we let the preferences of the nodes in the synthetic networks follow the same empirical distribution as the authentic data. Finally, we calculate the distribution of the equivalence classes for both the authentic and synthetic networks. Thus we obtain sets of real-world data, where each set is compared to artificially constructed networks in order to test our null hypothesis.
In our analysis we were unable to find a sufficient significant difference to reject the null hypothesis, as illustrated by Figure 3: The histograms of equivalence classes for the synthetic networks and that of the authentic network overlap to a high extent, and we found similar results for all of the preference sets. As noted in Section I, research on preference orders as node attributes in a network is scarce, and we are currently not aware of any other available data sets. Therefore it is at this point unclear whether this negative result is due to the particular data set or if it is indicative of a more general phenomenon.

Personal | Social | ||||||
---|---|---|---|---|---|---|---|
Hangout | Chatting | Lifestyle | Website | Government | Serious | Leader | |
place | app | activity | visited | investment | crime | ||
Friend’s place | Viewing posts | Intellectual | Education | Rape | N. Modi (India) | ||
Adventure park | Chatting | Exercising | Agriculture | Terrorism | B. Obama (USA) | ||
Trekking | Hangouts | Posting | Social activist | Youtube | Infrastructure | Murder | D. Cameron (UK) |
Mall | SMS | Games/Apps | Lavish | Wikipedia | Military | Corruption | V. Putin (Russia) |
Historical place | Skype | Marketing | Smoking | Amazon | Space explore | Extortion | X. Jinping (China) |
IV Conclusions and discussion
We have characterized the triangles that can occur in net- works with preference orders as node attributes. Specifically, for preference orders with three alternatives, we showed in Theorem 1 that there are only unique preference triangles. We have also analyzed numerically an authentic data set and compared its empirical distribution of unique preference triangles with a null hypothesis with randomized preference orderings. We hope that these results will stimulate others to explore variations of the framework presented here, and collect data that can be used for further quantitative studies. Some open problems include the following:
-
•
Is it possible to find a total order for the equivalence classes?
-
•
Is there an objective argument for choosing a particular partial order for the equivalence classes? While we are not aware of any literature that addresses this particular issue, a recent paper [28] proposed a partial order of the set of preference profiles between individuals. Another paper of potential interest is [29], where combinatorial Hodge theory was proposed as a tool for statistical analysis of ranking data through minimization of pairwise ranking disagreement. To the best of our knowledge, it is an open problem for both of these approaches whether or not they are generalizable to comparisons between groups of preferences per group (with being the special case of interest in our setting).
-
•
Given an order of equivalence classes, how should the different classes map to structural balance? That is, how should such a mapping be formally defined?
-
•
Does the distribution of equivalence classes differ significantly between real-world networks and synthetic networks? More samples of authentic networks with preferences as node attributes are needed for a robust analysis.
As a final remark, note that by pairing the two node attributes associated with a particular edge, a network with node attributes could always be mapped onto a network with edge attributes. In particular, in an attempt to interpret structural balance in terms of node preferences, one could consider networks with two different types of nodes, representing two different opinions ( and , say) and define an edge to be “” if it connects two nodes of type or two nodes of type , and “” otherwise. Unfortunately, this does not lead anywhere as the resulting network is always balanced (in fact, it has the natural partitioning in two parts consisting of -nodes and -nodes, respectively). In order to map node attributes to edge attributes in a way that leads to non-trivial results, one must go beyond binary node attributes. The path we explored in this paper has been to associate preference orderings with the nodes. Future work may consider other possibilities.
In order to prove Theorem 2, we first need a lemma.
Lemma 1.
Let denote the number of elements of order in the symmetric group . Then
(2) |
Proof.
Any element can be written as a product of disjoint cyclic permutations, and the order of is the least common multiple of the orders of these cycles. Thus has order only if its cyclic decomposition consists of identities and -cycles. The latter will be constructed from a subset with elements, for some positive integer such that , and there are ways of choosing such a subset. From this set we can create disjoint -cycles in ways to obtain a product of the form
(3) |
Since these cycles are disjoint, there are ways to permute them. In turn, each -cycle can be permuted in unique ways, giving us ways to arrange them in total.
Putting this together, we have the following result. For any positive integer , the number of elements of order in is equal to
(4) | ||||
The result follows by summing over all such that
.
∎
Now we proceed to prove the Theorem 2.
Proof of Theorem 2.
Note that we can always relabel the nodes and swap elements in the permutations such that the permutation associated with one of the nodes is the identity permutation, denoted by . Therefore we only need to consider ordered lists of the form , where and are arbitrary permutations on elements. Four cases can occur:
(5a) | |||
(5b) | |||
(5c) | |||
(5d) | |||
In cases (5b) to (5d) we can obtain equivalent lists by multiplying the permutations with an inverse permutation that takes one of them to the identity (e.g. can be multiplied with resulting in ). By relabeling the nodes we can also obtain additional equivalent lists: is equivalent to . By doing so we get and possibilities for cases (5a), (5b), (5c) and (5d), respectively.
The number of equivalence classes will be equal to the sum of the number of unique representatives in each case. In case (5a) there is only one possibility. In case (5b) there are possibilities since can be any permutation on symbols except the identity. In (5c) we require to be of order , and by Lemma 1 the number of possibilities for such permutations is . It follows that the number of possibilities is . Finally, note that the number of ways to arrange is equal to . Therefore we can deduce that the number of possibilities for (5d) must be equal to
(6) |
Thus the total number of equivalence classes is
(7) | ||||
∎
Acknowledgments
We thank the authors of [14] for generously sharing the datset that we used for the numerical experiments.
References
- [1] M. E. J. Newman and M. Girvan, “Finding and evaluating community structure in networks,” Phys. Rev. E, vol. 69, p. 026113, 2004.
- [2] D. Cartwright and F. Harary, “Structural balance: a generalization of Heider’s theory,” Psychological Review, vol. 63, no. 5, pp. 277–293, 1956.
- [3] A. Ammar and D. Shah, “Ranking: Compare, don’t score,” in Proc. of the 49th Annual Allerton Conference on Communication, Control, and Computing, 2011, pp. 776–783.
- [4] M. Brill, E. Elkind, U. Endriss, and U. Grandi, “Pairwise diffusion of preference rankings in social networks,” in Proc. of the 25th Joint Conference on Artificial Intelligence. AAAI Press, 2016, pp. 130–136.
- [5] A. Brun, A. Hamad, O. Buffet, and A. Boyer, “Towards Preference Relations in Recommender Systems,” in Workshop on Preference Learning (PL2010) in European Conference on Machine Learning and Principles and Practice of Knowledge Discovery in Databases - ECML-PKDD, Barcelona, Spain, Sep. 2010.
- [6] N. Jones, A. Brun, and A. Boyer, “Comparisons instead of ratings: Towards more stable preferences,” in 2011 IEEE/WIC/ACM International Conferences on Web Intelligence and Intelligent Agent Technology, vol. 1. IEEE, 2011, pp. 451–456.
- [7] L. Shaowu, “Relative preference-based recommender systems,” Ph.D. dissertation, Deakin University, 2016. [Online]. Available: http://hdl.handle.net/10536/DRO/DU:30088962
- [8] H. H. Bajgiran and H. Owhadi, “Aggregation of models, choices, beliefs, and preferences,” 2021. [Online]. Available: https://arxiv.org/abs/2111.11630
- [9] G. Bana, W. Jamroga, D. Naccache, and P. Y. Ryan, “Convergence voting: From pairwise comparisons to consensus,” 2021. [Online]. Available: https://arxiv.org/abs/2102.01995
- [10] A. Salehi-Abari, C. Boutilier, and K. Larson, “Empathetic decision making in social networks,” Artificial Intelligence, vol. 275, pp. 174–203, 2019.
- [11] E. Becirovic, “On social choice in social networks,” Linköping university, 2017. [Online]. Available: http://urn.kb.se/resolve?urn=urn:nbn:se:liu:diva-138578
- [12] A. Salehi-Abari and C. Boutilier, “Preference-oriented social networks: Group recommendation and inference,” in Proc. of the 9th ACM Conference on Recommender Systems. New York, NY, USA: ACM, 2015, pp. 35–42.
- [13] M. Jamali and M. Ester, “A matrix factorization technique with trust propagation for recommendation in social networks,” in Proceedings of the Fourth ACM Conference on Recommender Systems, ser. RecSys ’10. New York, NY, USA: Association for Computing Machinery, 2010, p. 135–142.
- [14] S. Dhamal, R. D. Vallam, and Y. Narahari, “Modeling spread of preferences in social networks for sampling-based preference aggregation,” IEEE Transactions on Network Science and Engineering, vol. 6, pp. 46–59, 2018.
- [15] F. Harary, “A structural analysis of the situation in the middle east in 1956,” Journal of Conflict Resolution, vol. 5, no. 2, pp. 167–178, 1961.
- [16] M. Moore, “Structural balance and international relations,” European Journal of Social Psychology, vol. 9, no. 3, pp. 323–326, 1979.
- [17] T. Newcomb, “Heiderian balance as a group phenomenon,” Journal of Personality and Social Psychology, vol. 40, pp. 862–867, 05 1981.
- [18] E. Estrada and M. Benzi, “Are social networks really balanced?” 2014. [Online]. Available: https://arxiv.org/abs/1406.2132
- [19] G. Shi, C. Altafini, and J. S. Baras, “Dynamics over signed networks,” SIAM Review, vol. 61, no. 2, pp. 229–257, 2019.
- [20] P. Cisneros-Velarde, N. E. Friedkin, F. Bullo et al., “Dynamic social balance and convergent appraisals via homophily and influence mechanisms,” Automatica: A journal of IFAC the International Federation of Automatic Control, no. 110, p. 11, 2019.
- [21] S. Aref and M. C. Wilson, “Measuring partial balance in signed networks,” Journal of Complex Networks, vol. 6, no. 4, pp. 566–595, 09 2017.
- [22] Y. Qian and S. Adali, “Foundations of trust and distrust in networks: Extended structural balance theory,” ACM Trans. Web, vol. 8, no. 3, Jul. 2014.
- [23] D. Meng, M. Du, and Y. Wu, “Extended structural balance theory and method for cooperative-antagonistic networks,” IEEE Transactions on Automatic Control, vol. 65, no. 5, pp. 2147–2154, 2020.
- [24] H. Du, X. He, and M. W. Feldman, “Structural balance in fully signed networks,” Complexity, vol. 21, no. S1, pp. 497–511, 2016.
- [25] X. He, H. Du, X. Xu, and W. Du, “An energy function for computing structural balance in fully signed network,” IEEE Transactions on Computational Social Systems, vol. 7, no. 3, pp. 696–708, 2020.
- [26] J. A. Davis, “Clustering and structural balance in graphs,” Human Relations, vol. 20, no. 2, pp. 181–187, 1967.
- [27] A.-L. Barabasi, Network science. Cambrdige University Press, 2016.
- [28] W. Y. Gao, “A partial order on preference profiles,” 2021. [Online]. Available: https://arxiv.org/abs/2108.08465
- [29] X. Jiang, L.-H. Lim, Y. Yao, and Y. Ye, “Statistical ranking and combinatorial hodge theory,” Mathematical Programming, vol. 127, no. 1, pp. 203–244, 2011.