Community detection using constrained label propagation algorithm with nodes exemption


The detection of community structure plays an important role in understanding the properties and characteristics of complex networks. The label propagation algorithm (LPA) emerges as a popular community detection method, due to its simplicity and low computational cost. Nonetheless, the LPA is not without its limitations so that the Semi Synchronous Constrained Label Propagation Algorithm (SSCLPA) is a modified LPA that implements various constraints to ameliorate the stability of the LPA. Aside from giving accurate and deterministic detection, it can avoid trivial detection. In this paper the SSCLPA is extended into weighted and directed networks, so that nodes which fulfill certain conditions are updated separately at the end of the algorithm. Furthermore, some modifications are performed on the propagation processes in the SSCLPA. These new features and modifications improve the time efficiency of the SSCLPA with only marginal loss in the quality of the detection. Our proposed method is tested and compared to the other community detection methods in various benchmark and real-world networks. The results showed that the proposed method is a well-balanced method with features that takes into account the stability, quality and time efficiency of the detection.

This is a preview of subscription content, access via your institution.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8


  1. 1.

    Barabási AL et al (2016) Network Science. Cambridge University Press, Cambridge

    MATH  Google Scholar 

  2. 2.

    Tremayne M (2014) Anatomy of protest in the digital era: a network analysis of Twitter and Occupy Wall Street. Social Movement Stud 13(1):110

    Article  Google Scholar 

  3. 3.

    Ortega GJ, Sola RG, Pastor J (2008) Complex network analysis of human ECoG data. Neurosci Lett 447(2–3):129

    Article  Google Scholar 

  4. 4.

    Zhong C, Arisona SM, Huang X, Batty M, Schmitt G (2014) Detecting the dynamics of urban structure through spatial network analysis. Int J Geogr Inf Sci 28(11):2178

    Article  Google Scholar 

  5. 5.

    Tan HX, Ujum EA, Choong KF, Ratnavelu K (2015) Impact analysis of domestic and international research collaborations: a Malaysian case study. Scientometrics 102(1):885

    Article  Google Scholar 

  6. 6.

    Albert R, Barabási AL (2002) Statistical mechanics of complex networks. Rev Mod Phys 74(1):47

    MathSciNet  Article  Google Scholar 

  7. 7.

    Watts DJ, Strogatz SH (1998) Collective dynamics of small-world networks. Nature 393(6684):440

    Article  Google Scholar 

  8. 8.

    Ravasz E, Somera AL, Mongru DA, Oltvai ZN, Barabási AL (2002) Hierarchical organization of modularity in metabolic networks. Science 297(5586):1551

    Article  Google Scholar 

  9. 9.

    Girvan M, Newman ME (2002) Community structure in social and biological networks. Proc Natl Acad Sci 99(12):7821

    MathSciNet  Article  Google Scholar 

  10. 10.

    Jonsson PF, Cavanna T, Zicha D, Bates PA (2006) Cluster analysis of networks generated through homology: automatic identification of important protein communities involved in cancer metastasis. BMC Bioinform 7(1):2

    Article  Google Scholar 

  11. 11.

    Traud AL, Kelsic ED, Mucha PJ, Porter MA (2011) Comparing community structure to characteristics in online collegiate social networks. SIAM Rev 53(3):526

    MathSciNet  Article  Google Scholar 

  12. 12.

    Fortunato S (2010) Community detection in graphs. Phys Rep 486(3–5):75

    MathSciNet  Article  Google Scholar 

  13. 13.

    Fortunato S, Hric D (2016) Community detection in networks: a user guide. Phys Rep 659:1

    MathSciNet  Article  Google Scholar 

  14. 14.

    Raghavan UN, Albert R, Kumara S (2007) Near linear time algorithm to detect community structures in large-scale networks. Phys Rev E 76(3):036106

    Article  Google Scholar 

  15. 15.

    Leung IX, Hui P, Lio P, Crowcroft J (2009) Towards real-time community detection in large networks. Phys Rev E 79(6):066107

    Article  Google Scholar 

  16. 16.

    Barber MJ, Clark JW (2009) Detecting network communities by propagating labels under constraints. Phys Rev E 80(2):026129

    Article  Google Scholar 

  17. 17.

    Liu X, Murata T (2010) Advanced modularity-specialized label propagation algorithm for detecting communities in networks. Physica A 389(7):1493

    Article  Google Scholar 

  18. 18.

    Xie J, Szymanski BK (2012) Pacific-Asia Conference on Knowledge Discovery and Data Mining. Springer, Berlin, pp 25–36

    Book  Google Scholar 

  19. 19.

    Xie J, Szymanski BK, Liu X (2011) 2011 IEEE 11th International Conference on Data Mining Workshops. IEEE, pp 344–349

  20. 20.

    Xing Y, Meng F, Zhou Y, Zhu M, Shi M, Sun G (2014) A node influence based label propagation algorithm for community detection in networks. Sci World J.

    Article  Google Scholar 

  21. 21.

    Gregory S (2010) Finding overlapping communities in networks by label propagation. New J Phys 12(10):103018

    Article  Google Scholar 

  22. 22.

    Gaiteri C, Chen M, Szymanski B, Kuzmin K, Xie J, Lee C, Blanche T, Neto EC, Huang SC, Grabowski T et al (2015) Identifying robust communities and multi-community nodes by combining top-down and bottom-up approaches to clustering. Sci Rep 5:16361

    Article  Google Scholar 

  23. 23.

    Wu T, Guo Y, Chen L, Liu Y (2016) Integrated structure investigation in complex networks by label propagation. Phys A 448:68

    Article  Google Scholar 

  24. 24.

    Žalik KR (2017) Community detection in networks using new update rules for label propagation. Computing 99(7):679

    MathSciNet  Article  Google Scholar 

  25. 25.

    Francisquini R, Rosset V, Nascimento MC (2017) GA-LP: a genetic algorithm based on label propagation to detect communities in directed networks. Expert Syst Appl 74:127

    Article  Google Scholar 

  26. 26.

    Hosseini R, Rezvanian A (2020) AntLP: ant-based label propagation algorithm for community detection in social networks. CAAI Trans Intell Technol 5(1):34

    Article  Google Scholar 

  27. 27.

    Chin JH, Ratnavelu K (2016) Detecting community structure by using a constrained label propagation algorithm. PLoS One 11(5):e1055320

    Google Scholar 

  28. 28.

    Chin JH, Ratnavelu K (2017) A semi-synchronous label propagation algorithm with constraints for community detection in complex networks. Sci Rep 7(1):1

    Article  Google Scholar 

  29. 29.

    Xie J, Kelley S, Szymanski BK (2013) Overlapping community detection in networks: the state-of-the-art and comparative study. ACM Comput Surv (CSUR) 45(4):1

    Article  Google Scholar 

  30. 30.

    Blondel VD, Guillaume JL, Lambiotte R, Lefebvre E (2008) Fast unfolding of communities in large networks. J Stat Mech: Theory Exp 10:P10008

    Article  Google Scholar 

  31. 31.

    Rosvall M, Bergstrom CT (2008) Maps of random walks on complex networks reveal community structure. Proc Natl Acad Sci 105(4):1118

    Article  Google Scholar 

  32. 32.

    Danon L, Diaz-Guilera A, Duch J, Arenas A (2005) Comparing community structure identification. J Stat Mech: Theory Exp 09:P09008

    Google Scholar 

  33. 33.

    Newman ME, Girvan M (2004) Finding and evaluating community structure in networks. Phys Rev E 69(2):026113026113

    Article  Google Scholar 

  34. 34.

    Chen M, Nguyen T, Szymanski BK (2013) 2013 International Conference on Social Computing. IEEE, pp 122–127

  35. 35.

    Lancichinetti A, Fortunato S, Radicchi F (2008) Benchmark graphs for testing community detection algorithms. Phys Rev E 78(4):046110

    Article  Google Scholar 

  36. 36.

    Lancichinetti A, Fortunato S (2009) Benchmarks for testing community detection algorithms on directed and weighted graphs with overlapping communities. Phys Rev E 80(1):016118

    Article  Google Scholar 

Download references


The authors would like to acknowledge Professor Michael Brunger of Flinder University for his careful reading of the paper and for some useful suggestions. This project is supported by University of Malaya HIR Grant UM.C/625/1/HIR/MOHE/SC/13. J.H.C. also wants to acknowledge the support of University of Malaya HIR GRAS.

Author information



Corresponding author

Correspondence to Jia Hou Chin.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and Permissions

About this article

Verify currency and authenticity via CrossMark

Cite this article

Chin, J.H., Ratnavelu, K. Community detection using constrained label propagation algorithm with nodes exemption. Computing (2021).

Download citation


  • Complex networks
  • Community structure
  • Community detection
  • Label propagation algorithm

Mathematics Subject Classification

  • 05C82
  • 05C85