{"id":37077717,"url":"https://github.com/mnets/pymnet","last_synced_at":"2026-01-14T09:00:57.428Z","repository":{"id":39161212,"uuid":"275881961","full_name":"mnets/pymnet","owner":"mnets","description":"The original library for analyzing multilayer networks.","archived":false,"fork":false,"pushed_at":"2024-07-24T17:56:52.000Z","size":3789,"stargazers_count":155,"open_issues_count":11,"forks_count":26,"subscribers_count":6,"default_branch":"master","last_synced_at":"2026-01-06T02:24:50.715Z","etag":null,"topics":["multilayer-networks","network-analysis","python"],"latest_commit_sha":null,"homepage":"https://mnets.github.io/pymnet/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mnets.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-06-29T17:24:07.000Z","updated_at":"2025-12-28T05:48:49.000Z","dependencies_parsed_at":"2023-10-20T18:31:02.169Z","dependency_job_id":"b2580525-0591-4ad7-bc85-d71adfc0f64e","html_url":"https://github.com/mnets/pymnet","commit_stats":null,"previous_names":["mnets/pymnet","bolozna/multilayer-networks-library"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mnets/pymnet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnets%2Fpymnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnets%2Fpymnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnets%2Fpymnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnets%2Fpymnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mnets","download_url":"https://codeload.github.com/mnets/pymnet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnets%2Fpymnet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28414732,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:38:59.149Z","status":"ssl_error","status_checked_at":"2026-01-14T08:38:43.588Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["multilayer-networks","network-analysis","python"],"created_at":"2026-01-14T09:00:56.572Z","updated_at":"2026-01-14T09:00:57.415Z","avatar_url":"https://github.com/mnets.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pymnet: A Python Library for Multilayer Networks\n\n[![codecov](https://codecov.io/gh/mnets/pymnet/graph/badge.svg?token=LI6QBAF7N0)](https://codecov.io/gh/mnets/pymnet)\n[![DOI](https://joss.theoj.org/papers/10.21105/joss.06930/status.svg)](https://doi.org/10.21105/joss.06930)\n\n\n`pymnet` is a Python package for creating, analyzing, and visualizing multilayer networks as formalized by [Kivelä et al. (2014)](https://doi.org/10.1093/comnet/cnu016).\nIt is designed for network scientists with an easy-to-use yet flexible interface, featuring, inter alia, representations of a very general class of multilayer networks, structural metrics of multilayer networks, and random multilayer-network models. \n\nTo learn more about the concepts and design principles underlying `pymnet`, check out [this overview](https://mnets.github.io/pymnet/overview.html).\n\n## Features\n\n* Written in pure Python\n* Full support for general [multilayer networks](http://comnet.oxfordjournals.org/content/2/3/203)\n* Efficient handling of multiplex networks (with automatically generated lazy evaluation of coupling edges)\n* Extensive functionality –– analysis, transformations, reading and writing networks, network models, etc.\n* Flexible multilayer-network visualization (using Matplotlib and D3)\n* Integration with [NetworkX](https://networkx.org/) for monoplex network analysis\n\n## Working with pymnet\n\n### Installation\nWe recommend executing the following command in a virtual environment: \n```console\n$ python -m pip install pymnet\n```\n\n### Usage\nTo get started with `pymnet`, check out our [tutorials](https://mnets.github.io/pymnet/tutorials) –– and when in doubt, consult the [API reference](https://mnets.github.io/pymnet/reference.html) contained in our [documentation](https://mnets.github.io/pymnet/).\n\nAs an introductory example, with the following code, we can create a small multiplex network capturing different types of social relations between individuals and visualize the result:\n\n```python\nimport pymnet\n\nnet_social = pymnet.MultiplexNetwork(couplings=\"categorical\", fullyInterconnected=False)\nnet_social[\"Alice\", \"Bob\", \"Friends\"] = 1\nnet_social[\"Alice\", \"Carol\", \"Friends\"] = 1\nnet_social[\"Bob\", \"Carol\", \"Friends\"] = 1\nnet_social[\"Alice\", \"Bob\", \"Married\"] = 1\n\nfig_social = pymnet.draw(net_social, layout=\"circular\", layerPadding=0.2, defaultLayerLabelLoc=(0.9,0.9))\n```\n\n\u003cp align=\"center\" style=\"margin-top:-6rem;margin-bottom:-3rem\"\u003e\n    \u003cimg alt=\"An image of a small multiplex social network.\" width=\"60%\" src=\"https://github.com/mnets/pymnet/raw/master/socialnet.png\"\u003e \n\u003c/p\u003e\n\n\n## Contributing\n\nWe welcome contributions!\nBefore you get started, please check out our [contribution guide](CONTRIBUTING.md).\n\n## Asking Questions\n\n* For bugs, feature requests, etc., please use [GitHub issues][github-issues].\n* Otherwise, feel free to contact the main developer: [Mikko Kivelä](http://www.mkivela.com/)\n\n[github-issues]: https://github.com/mnets/pymnet/issues\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmnets%2Fpymnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmnets%2Fpymnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmnets%2Fpymnet/lists"}