Skip to main content

Python wrapper around Combo network partitioning algorythm (C++)

Project description

pyCOMBO

CI

pyCombo is a python wrapper around C++ implementation of the [network] community detection algorithm called "Combo".

Details of the algorithm are described in the paper "General optimization technique for high-quality community detection":

Sobolevsky, S., Campari, R., Belyi, A. and Ratti, C., 2014. General optimization technique for high-quality community detection in complex networks. Physical Review E, 90(1), p.012811.

Installation

You can install the latest release of pycombo from PyPI by executing

python -m pip install pycombo

Quick Start

The basic usage is as follows:

import pycombo
import networkx as nx

partition = pycombo.execute(nx.karate_club_graph())

Package supports NetworkX graphs and .net files. It can also use custom modularity metrics. More examples could be found in example folder.

Development

This repo uses https://github.com/Alexander-Belyi/Combo as a git submodule. So for local development, clone with --recurse-submodules flag, as:

git clone --recurse-submodules https://github.com/Casyfill/pyCombo

Or, if you've already cloned it without --recurse-submodules, run:

git submodule update --init --recursive

Package is built and managed via poetry.

  • to install dev version, run poetry install
  • To build distributions run poetry build.

Information

Other useful Links and resources

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

pycombo-0.1.4.tar.gz (133.4 kB view hashes)

Uploaded Source

Built Distributions

pycombo-0.1.4-cp38-cp38-manylinux_2_31_x86_64.whl (107.0 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.31+ x86-64

pycombo-0.1.4-cp37-cp37m-manylinux_2_31_x86_64.whl (109.7 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.31+ x86-64

Supported by

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