pymnet

pymnet: A Python Library for Multilayer Networks - Published in JOSS (2024)

https://github.com/mnets/pymnet

Science Score: 95.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 6 DOI reference(s) in README and JOSS metadata
  • Academic publication links
    Links to: joss.theoj.org
  • Committers with academic emails
    1 of 10 committers (10.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
    Published in Journal of Open Source Software

Keywords

multilayer-networks network-analysis python
Last synced: 4 months ago · JSON representation

Repository

The original library for analyzing multilayer networks.

Basic Info
Statistics
  • Stars: 147
  • Watchers: 6
  • Forks: 27
  • Open Issues: 11
  • Releases: 0
Topics
multilayer-networks network-analysis python
Created over 5 years ago · Last pushed over 1 year ago
Metadata Files
Readme Contributing License Code of conduct

README.md

pymnet: A Python Library for Multilayer Networks

codecov DOI

pymnet is a Python package for creating, analyzing, and visualizing multilayer networks as formalized by Kivelä et al. (2014). It 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.

To learn more about the concepts and design principles underlying pymnet, check out this overview.

Features

  • Written in pure Python
  • Full support for general multilayer networks
  • Efficient handling of multiplex networks (with automatically generated lazy evaluation of coupling edges)
  • Extensive functionality –– analysis, transformations, reading and writing networks, network models, etc.
  • Flexible multilayer-network visualization (using Matplotlib and D3)
  • Integration with NetworkX for monoplex network analysis

Working with pymnet

Installation

We recommend executing the following command in a virtual environment: console $ python -m pip install pymnet

Usage

To get started with pymnet, check out our tutorials –– and when in doubt, consult the API reference contained in our documentation.

As 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:

```python import pymnet

netsocial = pymnet.MultiplexNetwork(couplings="categorical", fullyInterconnected=False) netsocial["Alice", "Bob", "Friends"] = 1 netsocial["Alice", "Carol", "Friends"] = 1 netsocial["Bob", "Carol", "Friends"] = 1 net_social["Alice", "Bob", "Married"] = 1

figsocial = pymnet.draw(netsocial, layout="circular", layerPadding=0.2, defaultLayerLabelLoc=(0.9,0.9)) ```

An image of a small multiplex social network.

Contributing

We welcome contributions! Before you get started, please check out our contribution guide.

Asking Questions

Owner

  • Name: mnets
  • Login: mnets
  • Kind: organization

JOSS Publication

pymnet: A Python Library for Multilayer Networks
Published
July 24, 2024
Volume 9, Issue 99, Page 6930
Authors
Tarmo Nurmi ORCID
Aalto University, Finland
Arash Badie-Modiri ORCID
Central European University, Austria
Corinna Coupette ORCID
Aalto University, Finland, KTH Royal Institute of Technology, Sweden, Max Planck Institute for Informatics, Germany
Mikko Kivelä ORCID
Aalto University, Finland
Editor
Daniel S. Katz ORCID
Tags
multilayer network multiplex network network science attributed graph

GitHub Events

Total
  • Issues event: 1
  • Watch event: 18
  • Issue comment event: 1
  • Fork event: 2
Last Year
  • Issues event: 1
  • Watch event: 18
  • Issue comment event: 1
  • Fork event: 2

Committers

Last synced: 5 months ago

All Time
  • Total Commits: 574
  • Total Committers: 10
  • Avg Commits per committer: 57.4
  • Development Distribution Score (DDS): 0.563
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Mikko Kivelä 6****a 251
Tarmo Nurmi t****i@g****m 160
dataspider c****e@g****m 91
Arash Badie-Modiri a****m@g****m 60
Pietro Monticone 3****e 4
Kivelä Mikko m****a@t****i 3
Luiz Irber l****r@g****m 2
alexguirre a****a@g****m 1
DaminK d****n@r****e 1
sala515 s****n@w****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 4 months ago

All Time
  • Total issues: 43
  • Total pull requests: 10
  • Average time to close issues: 4 months
  • Average time to close pull requests: 2 months
  • Total issue authors: 18
  • Total pull request authors: 8
  • Average comments per issue: 1.14
  • Average comments per pull request: 0.2
  • Merged pull requests: 8
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 6
  • Pull requests: 1
  • Average time to close issues: about 1 hour
  • Average time to close pull requests: about 14 hours
  • Issue authors: 4
  • Pull request authors: 1
  • Average comments per issue: 0.5
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • nwlandry (10)
  • pitmonticone (8)
  • ClaudMor (7)
  • dataspider (4)
  • debrisvector (1)
  • rcyost (1)
  • helmontzgen (1)
  • LINQcode1 (1)
  • colltoaction (1)
  • chhyunch (1)
  • ercco (1)
  • Morri2676 (1)
  • aviswaroop (1)
  • lindayuanyuan (1)
  • tfblanken (1)
Pull Request Authors
  • pitmonticone (3)
  • ercco (3)
  • cloner174 (2)
  • arashbm (2)
  • sdall (2)
  • danielskatz (2)
  • DaminK (1)
  • alexguirre (1)
Top Labels
Issue Labels
enhancement (4)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 189 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 3
  • Total maintainers: 2
pypi.org: pymnet

Multilayer network analysis library for Python

  • Versions: 3
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 189 Last month
Rankings
Stargazers count: 8.3%
Forks count: 9.4%
Dependent packages count: 10.9%
Average: 22.4%
Dependent repos count: 61.2%
Maintainers (2)
Last synced: 4 months ago

Dependencies

setup.py pypi