Skip to main content

Generalised Configuration Model random Graphs in Python

Project description

Overview

gcmpy is a Python library that creates random graph models according to the generalised configuration model (GCM). Random graph models provide an excellent framework to integrate topology with dynamics. The topology of a network is crucial to the outcome of a dynamical process, such as an epidemic, occurring over a network.

To create the networks, gcmpy creates a joint degree distribution object through a variety of analytical or empirical methods. Once constructed, this joint distribution is sampled to obtain a joint degree sequence. The joint sequence is then used in the GCM algorithm to create an edge list.

gcmpy generates networks as edge lists and therefore can be integrated into any graph library such as networkx or iGraph.

Networks can be given storage tags to classify the properties for database look-up.

Installation

You can install gcmpy directly from PyPi using pip:

pip install gcmpy

The master distribution of gcmpy is hosted on GitHub. To obtain a copy, just clone the repo:

git clone git@github.com:PeterStAndrews/gcmpy.git
cd gcmpy
python setup.py install

Documentation

API documentation for gcmpy is available on ReadTheDocs

Author and license

Copyright (c) 2021, Peter Mann <pm78@st-andrews.ac.uk>

Licensed under the GNU General Public License v2 or later (GPLv2+).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gcmpy-0.0.1.tar.gz (258.6 kB view details)

Uploaded Source

File details

Details for the file gcmpy-0.0.1.tar.gz.

File metadata

  • Download URL: gcmpy-0.0.1.tar.gz
  • Upload date:
  • Size: 258.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for gcmpy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2fc01437730b2745412a375d9bb7324d8d3d07a0eef919096365049e82c07fed
MD5 5b919adfa2a105f9831fc9aee3e20af3
BLAKE2b-256 6309800225b1f2a9a0a947c4aef02268e5e8164a97198a5e6bf5403745990429

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page