Please wait a minute...
Chin. Phys. B, 2025, Vol. 34(3): 038902    DOI: 10.1088/1674-1056/ada439
SPECIAL TOPIC — Computational programs in complex systems Prev  

SNSAlib: A python library for analyzing signed network

Ai-Wen Li(李艾纹)1, Jun-Lin Lu(陆俊霖)2, Ying Fan(樊瑛)1,†, and Xiao-Ke Xu(许小可)2,‡
1 School of Systems Science, Beijing Normal University, Beijing 100875, China;
2 School of Journalism and Communication, Beijing Normal University, Beijing 100875, China
Abstract  The unique structure of signed networks, characterized by positive and negative edges, poses significant challenges for analyzing network topology. In recent years, various statistical algorithms have been developed to address this issue. However, there remains a lack of a unified framework to uncover the nontrivial properties inherent in signed network structures. To support developers, researchers, and practitioners in this field, we introduce a Python library named SNSAlib (Signed Network Structure Analysis), specifically designed to meet these analytical requirements. This library encompasses empirical signed network datasets, signed null model algorithms, signed statistics algorithms, and evaluation indicators. The primary objective of SNSAlib is to facilitate the systematic analysis of micro- and meso-structure features within signed networks, including node popularity, clustering, assortativity, embeddedness, and community structure by employing more accurate signed null models. Ultimately, it provides a robust paradigm for structure analysis of signed networks that enhances our understanding and application of signed networks.
Keywords:  signed networks      null models      topology structure      statistic analysis  
Received:  05 November 2024      Revised:  12 December 2024      Accepted manuscript online: 
PACS:  89.75.Fb (Structures and organization in complex systems)  
  87.23.Ge (Dynamics of social systems)  
  05.10.-a (Computational methods in statistical physics and nonlinear dynamics)  
Fund: Project supported by the National Natural Science Foundation of China (Grant Nos. 72371031, 62173065, and 62476045) and Fundamental Research Funds for the Central Universities (Grant No. 124330008).
Corresponding Authors:  Ying Fan, Xiao-Ke Xu     E-mail:  yfan@bnu.edu.cn;xuxiaoke@foxmail.com

Cite this article: 

Ai-Wen Li(李艾纹), Jun-Lin Lu(陆俊霖), Ying Fan(樊瑛), and Xiao-Ke Xu(许小可) SNSAlib: A python library for analyzing signed network 2025 Chin. Phys. B 34 038902

[1] Szell M, Lambiotte R and Thurner S 2010 Proc. Natl. Acad. Sci. USA 107 13636
[2] Heider F 1946 The Journal of Psychology 21 107
[3] Cartwright D and Harary F 1956 Psychological Review 63 277
[4] Newman M E J 2018 Networks:An Introduction 2nd Edn.(Oxford: Oxford University Press)
[5] Girdhar N and Bharadwaj K K 2016 International Conference on Advances in Computing and Data Sciences 721 326
[6] Perfetto L, Briganti L, Calderone A, Perpetuini C A, Iannuccelli M, Langone F, Licata L, Marinkovic M, Mattioni A, Pavlidou T, Peluso D, Petrilli L L, Pirro S, Posca D, Santonico E, Silvestri A, Spada F, Castagnoli L and Cesareni G 2016 Nucleic Acids Research 44 D548
[7] Lin W Y and Li B C 2024 IEEE Transactions on Neural Networks and Learning Systems 35 4580
[8] Seo C, Jeong K J, Lim S and Shin W Y 2024 IEEE Transactions on Neural Networks and Learning Systems 35 4729
[9] Wang H W, Zhang F Z, Hou M, Xie X, Guo M Y and Liu Q 2017 Proceedings of the Eleventh ACM International Conference On Web Search and Data Mining (WSDM'18). ACM, New York 592
[10] Li L B, Zeng A, Fan Y and Di Z R 2022 Chaos 32 083101
[11] Ma Z W, Sun L, Ding Z G, Huang Y Z and Hu Z L 2024 Chin. Phys. B 33 028902
[12] Lee W C, Lee Y C, Lee D W and Kim S K 2021 Proceedings of the 44th International ACM SIGIR Conference on Research and Development in Information Retrieval 143
[13] Ciotti V, Bianconi G, Capocci A, Colaiori F and Panzarasa P 2015 Physica A 422 25
[14] Jose B M, Efrain C L and Rodrigo H Q 2022 PLoS One 17 e0278647
[15] Cheng H, He C, Liu H, Liu X, Yu P and Chen Q M 2024 IEEE Transactions on Network Science and Engineering 11 1642
[16] Kirkley A, Cantwell G T and Newman M E J 2019 Phys. Rev. E 99 012320
[17] Tian Y and Lambiotte R 2024 Siam Journal On Applied Dynamical Systems 23 50
[18] Colizza V, Flammini A, Serrano M and Vespignani A 2006 Nat. Phys. 2 110
[19] Davis J A 1977 Social Networks 20 27
[20] Gjoka M, Kurant M and Markopoulou A 2013 2013 Proceedings IEEE INFOCOM 1968
[21] Li A W, Xiao J and Xu X K 2021 Chin. Phys. B 30 038901
[22] Hao B J and Istvan A K 2024 Sci. Adv. 10 eadj0104
[23] Morel-Balbi S and Peixoto P T 2020 Phys. Rev. E 102 032306
[24] Paul S and Chen Y G 2022 Sankhya-Series A-Mathematical Statistics and Probability 84 163
[25] Leskovec J and Krevl A 2014 SNAP Datasets:Stanford Large Network Dataset Collection
[26] Kropivnik S and Mrvar A 1996 Developments in Statistics and Methodology 12 209
[27] Read K E 1954 Journal of Anthropological Research 10 1
[28] Kronenfeld D B 2005 Structural Models in Anthropology, in Encyclopedia of Social Measurement, ed. by Kimberly Kempf-Leonard (New York:Elsevier) p. 705
[29] Homans G C 1951 The American Journal of Psychology 64 463
[30] Breiger R L, Boorman S A and Arabie P 1975 Journal of Mathematical Psychology 12 328
[31] Bassoul R, Moreno J L, Jennings H H, Criswell J H, Katz L, Blake R R, Mouton J S, Bonney M E, Northway M L and Loomis C P 1961 Revue Franaise De Sociologie 2 331
[32] Dohleman B S 2006 Exploratory Social Network Analysis with Pajek (New York:Cambridge University Press)71 605
[33] Kumar S, Spezzano F, Subrahmanian V S and Faloutsos C 2016 2016 IEEE 16th International Conference on Data Mining (ICDM)221
[34] West R, Paskov H S, Leskovec J and Potts C 2014 Transactions of the Association for Computational Linguistics 2 297
[35] Leskovec J, Huttenlocher D and Kleinberg J 2010 Conference on Human Factors in Computing Systems (Atlanta, Georgia, USA)1361
[36] Cui W K, Shang K K, Zhang Y J, Xiao J and X X K 2018 Euro. Phys. J. B 91 1
[37] Kunegis J, Lommatzsch A and Bauckhage C 2009 Proceedings of the 18th international conference on World wide web (ACM Press)741- 750
[38] Yao L, Wang L N, Pan L and Yao K 2016 Procedia Computer Science 83 82
[39] Vazquez A and Vespignani A 2001 Phys. Rev. Lett. 87 258701
[40] Newman M E J 2002 Phys. Rev. Lett. 89 89
[41] Li A W, Xiao J and Xu X K 2020 IEEE Transactions on Computational Social Systems 7 1460
[42] Jia G B, Cai Z X, Musolesi M, Wang Y, Tennant D A, Weber R J M, Heath J K and He S 2012 Revised Selected Papers of the International Conference on Learning&Intelligent Optimization (Berlin, Heidelberg:Springer) pp. 71-85
[43] Yang B, Cheung W and Liu J M 2007 IEEE Transactions on Knowledge&Data Engineering 19 1333
[44] Apollonio N, Franciosa P G and Santoni D 2022 Scientific Reports 12 9757
[45] Waldorp L and Haslbeck J 2024 Multivariate Behavioral Research 2024 738
[46] Foster J G, Foster D V, Grassberger P and Paczuski M 2010 Proc. Natl. Acad. Sci. USA 107 10815
[47] He X C, Zhang R C and Zhu B 2023 Complexity 2023 8767131
[48] Newman M E J, Cantwell G T and Young J G 2020 Phys. Rev. E 101 042304
[49] Li A W, Xu X K and Fan Y 2022 Chaos, Solitons and Fractals 162112489
[50] Liu S Y, Xiao J and Xu X K 2020 Physica A 593 126966
[51] Liu S Y, Xiao J and Xu X K 2020 Information Sciences 541 316
[52] Liu S Y, Xiao J and Xu X K 2019 IEEE Transactions on Network Science and Engineering 7 1724
[1] Source localization in signed networks with effective distance
Zhi-Wei Ma(马志伟), Lei Sun(孙蕾), Zhi-Guo Ding(丁智国), Yi-Zhen Huang(黄宜真), and Zhao-Long Hu(胡兆龙). Chin. Phys. B, 2024, 33(2): 028902.
[2] Constructing refined null models for statistical analysis of signed networks
Ai-Wen Li(李艾纹), Jing Xiao(肖婧, and Xiao-Ke Xu(许小可). Chin. Phys. B, 2021, 30(3): 038901.
[3] Uncovering offline event similarity of online friends by constructing null models
Wenkuo Cui(崔文阔), Jing Xiao(肖婧), Ting Li(李婷), Xiaoke Xu(许小可). Chin. Phys. B, 2019, 28(6): 068901.
[4] Community detection in signed networks based on discrete-time model
Jianrui Chen(陈建芮), Li Zhang(张莉), Weiwei Liu(刘维维), Zaizai Yan(闫在在). Chin. Phys. B, 2017, 26(1): 018901.
No Suggested Reading articles found!