Evaluating balance on social networks from their simple cycles

Signed networks have long been used to represent social relations of amity (+) and enmity (-) between individuals. Group of individuals who are cyclically connected are said to be balanced if the number of negative edges in the cycle is even and unbalanced otherwise. In its earliest and most natural formulation, the balance of a social network was thus defined from its simple cycles, cycles which do not visit any vertex more than once. Because of the inherent difficulty associated with finding such cycles on very large networks, social balance has since then been studied via other means. In this article we present the balance as measured from the simple cycles and primitive orbits of social networks. We specifically provide two measures of balance: the proportion $R_\ell$ of negative simple cycles of length $\ell$ for each $\ell\leq 20$ which generalises the triangle index, and a ratio $K_\ell$ which extends the relative signed clustering coefficient introduced by Kunegis. To do so, we use a Monte Carlo implementation of a novel exact formula for counting the simple cycles on any weighted directed graph. Our method is free from the double-counting problem affecting previous cycle-based approaches, does not require edge-reciprocity of the underlying network, provides a gray-scale measure of balance for each cycle length separately and is sufficiently tractable that it can be implemented on a standard desktop computer. We observe that social networks exhibit strong inter-edge correlations favouring balanced situations and we determine the corresponding correlation length $\xi$. For longer simple cycles, $R_\ell$ undergoes a sharp transition to values expected from an uncorrelated model. This transition is absent from synthetic random networks, strongly suggesting that it carries a sociological meaning warranting further research.

[1]  Hans-Peter Kriegel,et al.  Shortest-path kernels on graphs , 2005, Fifth IEEE International Conference on Data Mining (ICDM'05).

[2]  David Avis,et al.  Reverse Search for Enumeration , 1996, Discret. Appl. Math..

[3]  Nazanin Movarraei On the Number of Cycles in a Graph , 2014, 1405.6272.

[4]  C. Altafini,et al.  Computing global structural balance in large-scale signed social networks , 2011, Proceedings of the National Academy of Sciences.

[5]  Evimaria Terzi,et al.  A Spectral Algorithm for Computing Social Balance , 2011, WAW.

[6]  Nagarajan Natarajan,et al.  Prediction and clustering in signed networks: a local to global perspective , 2013, J. Mach. Learn. Res..

[7]  R. Zajonc,et al.  Structural balance, reciprocity, and positivity as sources of cognitive bias. , 1965, Journal of personality.

[8]  Frank Harary,et al.  On the number of cycles in a graph , 1971 .

[9]  Kenton O'Hara,et al.  Social Impact , 2019, Encyclopedia of Food and Agricultural Ethics.

[10]  Paul Resnick,et al.  Follow the reader: filtering comments on slashdot , 2007, CHI.

[11]  Michael Clausen,et al.  Algebraic complexity theory , 1997, Grundlehren der mathematischen Wissenschaften.

[12]  F. Harary On the notion of balance of a signed graph. , 1953 .

[13]  Russell Impagliazzo,et al.  On the Complexity of k-SAT , 2001, J. Comput. Syst. Sci..

[14]  Fred S. Roberts,et al.  A derivation of a measure of relative balance for social structures and a characterization of extensive ratio systems , 1972 .

[15]  Thomas Gärtner,et al.  Cyclic pattern kernels for predictive graph mining , 2004, KDD.

[16]  Mark C. Wilson,et al.  Measuring Partial Balance in Signed Networks , 2015, J. Complex Networks.

[17]  Roberto Grossi,et al.  Optimal Listing of Cycles and st-Paths in Undirected Graphs , 2012, SODA.

[18]  O. Bagasra,et al.  Proceedings of the National Academy of Sciences , 1914, Science.

[19]  Ryuhei Uehara,et al.  The Number of Connected Components in Graphs and Its Applications , 2007 .

[20]  Audrey Terras,et al.  Zeta Functions of Graphs: A Stroll through the Garden , 2010 .

[21]  Khaled M. Elbassioni A Polynomial Delay Algorithm for Generating Connected Induced Subgraphs of a Given Cardinality , 2015, J. Graph Algorithms Appl..

[22]  Michele Benzi,et al.  Walk-based measure of balance in signed networks: detecting lack of balance in social networks. , 2014, Physical review. E, Statistical, nonlinear, and soft matter physics.

[23]  Y. Ihara On discrete subgroups of the two by two projective linear group over p-adic fields , 1966 .

[24]  F. Harary On the measurement of structural balance , 2007 .

[25]  Frank Harary,et al.  A simple algorithm to detect balance in signed graphs , 1980, Math. Soc. Sci..

[26]  Sahin Albayrak,et al.  Spectral Analysis of Signed Graphs for Clustering, Prediction and Visualization , 2010, SDM.

[27]  M King,et al.  Behavioral Science. , 1958, Science.

[28]  K. Hashimoto Zeta functions of finite graphs and representations of p-adic groups , 1989 .

[29]  Donald B. Johnson,et al.  Finding All the Elementary Circuits of a Directed Graph , 1975, SIAM J. Comput..

[30]  Jure Leskovec,et al.  Signed networks in social media , 2010, CHI.

[31]  Nils M. Kriege,et al.  A General Purpose Algorithm for Counting Simple Cycles and Simple Paths of Any Length , 2016, Algorithmica.

[32]  J. Herskowitz,et al.  Proceedings of the National Academy of Sciences, USA , 1996, Current Biology.

[33]  F. Harary,et al.  STRUCTURAL BALANCE: A GENERALIZATION OF HEIDER'S THEORY1 , 1977 .

[34]  A. Terras,et al.  Zeta Functions of Finite Graphs and Coverings , 1996 .

[35]  Joel Franklin,et al.  A Finite-Difference Sieve to Count Paths and Cycles by Length , 1996, Inf. Process. Lett..

[36]  F. Heider Attitudes and cognitive organization. , 1946, The Journal of psychology.

[37]  Per Hage,et al.  A graph theoretic approach to the analysis of alliance structure and local grouping in highland New Guinea , 1973 .

[38]  H. Busemann Advances in mathematics , 1961 .

[39]  S. Grossberg,et al.  Psychological Review , 2003 .

[40]  Mark C. Wilson,et al.  An exact method for computing the frustration index in signed networks using binary programming , 2016, ArXiv.

[41]  Narsingh Deo,et al.  On Algorithms for Enumerating All Circuits of a Graph , 1976, SIAM J. Comput..

[42]  G Iacono,et al.  Determining the distance to monotonicity of a biological network: a graph-theoretical approach. , 2010, IET systems biology.

[43]  Paul Rochet,et al.  Enumerating Simple Paths from Connected Induced Subgraphs , 2018, Graphs Comb..

[44]  P. L. Krapivsky,et al.  Social balance on networks : The dynamics of friendship and enmity , 2006 .

[45]  A. Terras,et al.  Zeta functions of finite graphs and coverings, III , 1996 .

[46]  Jérôme Kunegis,et al.  Applications of Structural Balance in Signed Social Networks , 2014, ArXiv.

[47]  Frank Harary,et al.  A matrix criterion for structural balance , 1960 .

[48]  Noga Alon,et al.  Finding and counting given length cycles , 1997, Algorithmica.

[49]  Paul Rochet,et al.  Algebraic Combinatorics on Trace Monoids: Extending Number Theory to Walks on Graphs , 2016, SIAM J. Discret. Math..

[50]  C. Lange,et al.  Frustration index and Cheeger inequalities for discrete and continuous magnetic Laplacians , 2015, 1502.06299.