Py3plex: A Library for Scalable Multilayer Network Analysis and Visualization

  • Blaž ŠkrljEmail author
  • Jan Kralj
  • Nada LavračEmail author
Conference paper
Part of the Studies in Computational Intelligence book series (SCI, volume 812)


Real-life systems are commonly represented as networks of interacting entities. While homogeneous networks consist of nodes of a single node type, multilayer networks are characterized by multiple types of nodes or edges, all present in the same system. Analysis and visualization of such networks represent a challenge for real-life complex network applications. The presented Py3plex Python-based library facilitates the exploration and visualization of multilayer networks. The library includes a diagonal projection-based network visualization, developed specifically for large networks with multiple node (and edge) types. The library also includes state-of-the-art methods for network decomposition and statistical analysis. The Py3plex functionality is showcased on real-world multilayer networks from the domains of biology and on synthetic networks.



This work was financially supported by the Slovenian Research Agency (ARRS) grants HinLife: Analysis of Heterogeneous Information Networks for Knowledge Discovery in Life Sciences (J7-7303) and Semantic Data Mining for Linked Open Data (financed under the ERC Complementary Scheme, N2-0078).


  1. 1.
    Amato, R., Kouvaris, N.E., San Miguel, M., Díaz-Guilera, A.: Opinion competition dynamics on multiplex networks. New J. Phys. 19(12) (2017)Google Scholar
  2. 2.
    Bastian, M., Heymann, S., Jacomy, M., others: Gephi: an open source software for exploring and manipulating networks. In: International AAAI Conference on Web and Social Media Third International AAAI Conference on Weblogs and Social Media, vol. 8, pp. 361–362 (2009)Google Scholar
  3. 3.
    Blondel, V.D., Guillaume, J.L., Lambiotte, R., Lefebvre, E.: Fast unfolding of communities in large networks. J. Stat. Mech. Theor. Exp. 2008(10), P10,008 (2008)Google Scholar
  4. 4.
    Boccaletti, S., Bianconi, G., Criado, R., del Genio, C., Gómez-Gardeñes, J., Romance, M., Sendiña-Nadal, I., Wang, Z., Zanin, M.: The structure and dynamics of multilayer networks. Phys. Rep. 544(1), 1–122 (2014)Google Scholar
  5. 5.
    Cho, D.Y., Kim, Y.A., Przytycka, T.M.: Chapter 5: network biology approach to complex diseases. PLOS Comput. Biol. 8(12), 1–11 (2012)Google Scholar
  6. 6.
    De Domenico, M., Porter, M.A., Arenas, A.: MuxViz: a tool for multilayer analysis and visualization of networks. J. Complex Netw. 3(2), 159–176 (2015)Google Scholar
  7. 7.
    De Domenico, M., Solé-Ribalta, A., Cozzo, E., Kivelä, M., Moreno, Y., Porter, M.A., Gómez, S., Arenas, A.: Mathematical formulation of multilayer networks. Phys. Rev. X 3(4) (2013)Google Scholar
  8. 8.
    Eaton, J.W., Bateman, D., Hauberg, S.: GNU octave version 3.0. 1 manual: a high-level interactive language for numerical computations. SoHo Books (2007)Google Scholar
  9. 9.
    Grover, A., Leskovec, J.: Node2vec: scalable feature learning for networks. In: Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’16, pp. 855–864. ACM, New York, NY, USA (2016)Google Scholar
  10. 10.
    Hagberg, A., Swart, P., S Chult, D.: Exploring network structure, dynamics, and function using Network X. In: Proceedings of the 7th Python in Science Conference (SciPy)(2008)Google Scholar
  11. 11.
    Jacomy, M., Venturini, T., Heymann, S., Bastian, M.: ForceAtlas2, a continuous graph algorithm for handy network visualization designed for the Gephi software. PloS One 9(6), e98,679 (2014)Google Scholar
  12. 12.
    Jones, E., Oliphant, T., Peterson, P., et al.: SciPy: open source scientific tools for Python (2001).
  13. 13.
    Kivelä, M., Arenas, A., Barthelemy, M., Gleeson, J.P., Moreno, Y., Porter, M.A.: Multilayer networks. J. Complex. Netw. 2(3), 203–271 (2014)Google Scholar
  14. 14.
    Kralj, J., Robnik-Šikonja, M., Lavrač, N.: HINMINE: heterogeneous information network mining with information retrieval heuristics. J. Intell. Inf. Syst. 50(1), 29–61 (2018)Google Scholar
  15. 15.
    Leskovec, J., Sosič, R.: Snap: a general-purpose network analysis and graph-mining library. ACM Trans. Intell. Syst. Technol. 8(1), 1:1–1:20 (2016)Google Scholar
  16. 16.
    Milano, M., Guzzi, P.H., Cannataro, M.: HetNetAligner: a novel algorithm for local alignment of heterogeneous biological networks. In: Proceedings of the 2018 ACM International Conference on Bioinformatics, Computational Biology, and Health Informatics, BCB ’18, pp. 598–599. ACM, New York, NY, USA (2018)Google Scholar
  17. 17.
    Nepusz, G., Csárdi, G.: The igraph software package for complex network research. Complex Syst. 1695(5), 1–9 (2006)Google Scholar
  18. 18.
    Rosvall, M., Axelsson, D., Bergstrom, C.T.: The map equation. Eur. Phys. J. Spec. Top. 178(1), 13–23 (2009)Google Scholar
  19. 19.
    Shannon, P.: Cytoscape: a software environment for integrated models of biomolecular interaction networks. Genome Res. 13(11), 2498–2504 (2003)Google Scholar
  20. 20.
    Siek, J.G., Lee, L.Q., Lumsdaine, A.: Boost Graph Library: The User Guide and Reference Manual. Pearson Education (2001)Google Scholar
  21. 21.
    Škrlj, B., Kralj, J., Vavpetič, A., Lavrač, N.: Community-based semantic subgroup discovery. In: Appice, A., Loglisci, C., Manco, G., Masciari, E., Ras, Z.W. (eds.) Proceedings of New Frontiers in Mining Complex Patterns, pp. 182–196. Springer International Publishing (2018)Google Scholar
  22. 22.
    Walt, S.V.D., Colbert, S.C., Varoquaux, G.: The numpy array: a structure for efficient numerical computation. Comput. Sci. Eng. 13(2), 22–30 (2011)Google Scholar
  23. 23.
    Wang, Z., Wang, L., Szolnoki, A., Perc, M.: Evolutionary games on multilayer networks: a colloquium. Eur. Phys. J. B 88(5), 124 (2015)Google Scholar

Copyright information

© Springer Nature Switzerland AG 2019

Authors and Affiliations

  1. 1.Jožef Stefan International Postgratuate SchoolLjubljanaSlovenia
  2. 2.Jožef Stefan InstituteLjubljanaSlovenia
  3. 3.University of Nova GoricaVipavaSlovenia

Personalised recommendations