中国物理B ›› 2025, Vol. 34 ›› Issue (3): 38902-038902.doi: 10.1088/1674-1056/ada439

所属专题: SPECIAL TOPIC — Computational programs in complex systems

• • 上一篇    下一篇

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. 1 School of Systems Science, Beijing Normal University, Beijing 100875, China;
    2 School of Journalism and Communication, Beijing Normal University, Beijing 100875, China
  • 收稿日期:2024-11-05 修回日期:2024-12-12 接受日期:2024-12-31 发布日期:2025-03-15
  • 通讯作者: Ying Fan, Xiao-Ke Xu E-mail:yfan@bnu.edu.cn;xuxiaoke@foxmail.com
  • 基金资助:
    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).

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. 1 School of Systems Science, Beijing Normal University, Beijing 100875, China;
    2 School of Journalism and Communication, Beijing Normal University, Beijing 100875, China
  • Received:2024-11-05 Revised:2024-12-12 Accepted:2024-12-31 Published:2025-03-15
  • Contact: Ying Fan, Xiao-Ke Xu E-mail:yfan@bnu.edu.cn;xuxiaoke@foxmail.com
  • Supported by:
    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).

摘要: 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.

关键词: signed networks, null models, topology structure, statistic analysis

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.

Key words: signed networks, null models, topology structure, statistic analysis

中图分类号:  (Structures and organization in complex systems)

  • 89.75.Fb
87.23.Ge (Dynamics of social systems) 05.10.-a (Computational methods in statistical physics and nonlinear dynamics)