Skip to main content

No project description provided

Project description

pymocd logo

Python Multi-Objective Community Detection Algorithms

PyPI Publish Rust Compilation PyPI - Version PyPI - License

pymocd is a Python library, powered by a Rust backend, for performing efficient multi-objective evolutionary community detection in complex networks. This library is designed to deliver enhanced performance compared to traditional methods, making it particularly well-suited for analyzing large-scale graphs.

Navigate the Documentation for detailed guidance and usage instructions.

Table of Contents


Understanding Community Detection with HP-MOCD

The HP-MOCD algorithm, central to pymocd, identifies community structures within a graph. It proposes a solution by grouping nodes into distinct communities, as illustrated below:

Original Graph Proposed Community Structure

Getting Started

Installing the library using pip interface:

pip install pymocd

For an easy usage:

import networkx
import pymocd

G = networkx.Graph() # Your graph
alg = pymocd.HpMocd(G)
communities = alg.run()

[!IMPORTANT] Graphs must be provided in NetworkX or Igraph compatible format.

Refer to the official Documentation for detailed instructions and more usage examples.

Contributing

We welcome contributions to pymocd! If you have ideas for new features, bug fixes, or other improvements, please feel free to open an issue or submit a pull request. This project is licensed under the GPL-3.0 or later.


Citation

If you use pymocd or the HP-MOCD algorithm in your research, please cite the following paper:

@article{Santos2025,
  author    = {Santos, Guilherme O. and Vieira, Lucas S. and Rossetti, Giulio and Ferreira, Carlos H. G. and Moreira, Gladston J. P.},
  title     = {A high-performance evolutionary multiobjective community detection algorithm},
  journal   = {Social Network Analysis and Mining},
  year      = {2025},
  volume    = {15},
  number    = {1},
  pages     = {110},
  issn      = {1869-5469},
  doi       = {10.1007/s13278-025-01519-7},
  url       = {https://doi.org/10.1007/s13278-025-01519-7}
}

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

pymocd-1.5.1.tar.gz (2.7 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pymocd-1.5.1-cp312-cp312-win_amd64.whl (283.1 kB view details)

Uploaded CPython 3.12Windows x86-64

pymocd-1.5.1-cp312-cp312-manylinux_2_34_x86_64.whl (404.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

pymocd-1.5.1-cp312-cp312-macosx_11_0_arm64.whl (345.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pymocd-1.5.1-cp311-cp311-win_amd64.whl (284.4 kB view details)

Uploaded CPython 3.11Windows x86-64

pymocd-1.5.1-cp311-cp311-manylinux_2_34_x86_64.whl (405.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

pymocd-1.5.1-cp311-cp311-macosx_11_0_arm64.whl (346.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pymocd-1.5.1-cp310-cp310-win_amd64.whl (283.3 kB view details)

Uploaded CPython 3.10Windows x86-64

pymocd-1.5.1-cp310-cp310-manylinux_2_34_x86_64.whl (405.3 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

pymocd-1.5.1-cp310-cp310-macosx_11_0_arm64.whl (346.4 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

pymocd-1.5.1-cp39-cp39-win_amd64.whl (285.8 kB view details)

Uploaded CPython 3.9Windows x86-64

pymocd-1.5.1-cp39-cp39-manylinux_2_34_x86_64.whl (407.1 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.34+ x86-64

pymocd-1.5.1-cp39-cp39-macosx_11_0_arm64.whl (348.0 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

pymocd-1.5.1-cp38-cp38-win_amd64.whl (285.3 kB view details)

Uploaded CPython 3.8Windows x86-64

pymocd-1.5.1-cp38-cp38-manylinux_2_34_x86_64.whl (406.9 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.34+ x86-64

pymocd-1.5.1-cp38-cp38-macosx_11_0_arm64.whl (348.1 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file pymocd-1.5.1.tar.gz.

File metadata

  • Download URL: pymocd-1.5.1.tar.gz
  • Upload date:
  • Size: 2.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for pymocd-1.5.1.tar.gz
Algorithm Hash digest
SHA256 a09adaa236f648f8778b13c04c98bbabf3533767b3f39f2d20ae00fffaeb7d58
MD5 49c374cdefb9d9d32fe21e168b5125ba
BLAKE2b-256 5966617316cb3ac0f69977032cc357380de6189bfd9b98f2b4999151b466172d

See more details on using hashes here.

File details

Details for the file pymocd-1.5.1-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: pymocd-1.5.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 283.1 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for pymocd-1.5.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 437b63a65c0c38f1b7f1e34dbb9e91a852e77a42db4466c4e3c5c7f2e21c3378
MD5 19dbc2cc3c667e32c9a7d084035429c4
BLAKE2b-256 e61dc2c017922acbfa7d799c9bde5626697f7587c3e2c5d3e1c922faf9a7d36a

See more details on using hashes here.

File details

Details for the file pymocd-1.5.1-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pymocd-1.5.1-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 d6eac7459bd22d21f44f70f4a7486639b0a3076da1672bd8d206956b54fda5c2
MD5 46c100a84636ddac4008530c8d7c8fa9
BLAKE2b-256 4fb5e71759d18227e8cb5e36e894e375edbe5268b9bf82bab406b5cb55b42575

See more details on using hashes here.

File details

Details for the file pymocd-1.5.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pymocd-1.5.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d70272c76b1117b6293efc9fb766d5df57866518cdfbfcc28c501632ad5961c4
MD5 ee46922328dd5a19f2287fa1d29fcb90
BLAKE2b-256 c244e8fea4b3c0846084a8cd9cb30b27e509e7af2218aea7acd77d247c87f6b3

See more details on using hashes here.

File details

Details for the file pymocd-1.5.1-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: pymocd-1.5.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 284.4 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for pymocd-1.5.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fc725e5375e7b10362fc70e2d862e7db3729e86c10c6116e9dbe594da5db30bf
MD5 5b370274cf4983f95408a5f36d2a88df
BLAKE2b-256 fc1c0a1bb80346ee1dae61a9ee93d259ac45c328224ac2182de9c6212589749c

See more details on using hashes here.

File details

Details for the file pymocd-1.5.1-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pymocd-1.5.1-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 f9a71801bf35ed2aece10d47eb5d7715812cffc887721b82336761c601a13bf7
MD5 cc9fee34a67f9193bddb5488762c3750
BLAKE2b-256 a5d0b5716d6e1227569c8e00c0b61df8de5013b4fa2c1d1b7211ddff9be4812c

See more details on using hashes here.

File details

Details for the file pymocd-1.5.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pymocd-1.5.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 58226c2991bd01dd30729cceb7a12baff020d4a4e3a055ad485bdc6eb197e6fb
MD5 8146365ff80c0c238e7877c813f23209
BLAKE2b-256 dc724cc4ea902ef64ab417ba38f1ae746e9f479b7811eb170c1435473754350d

See more details on using hashes here.

File details

Details for the file pymocd-1.5.1-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: pymocd-1.5.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 283.3 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for pymocd-1.5.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6c96d836bb1c7d24d26f52e499019b01cd6e57bdfcf1a8a1bc561ab0104c5650
MD5 ca09064803327c4cf7963715c222383f
BLAKE2b-256 c79ccd7fa482bdf4ac40b13df316e5fa797a7c35185cb7b99887f1fda5de0cd2

See more details on using hashes here.

File details

Details for the file pymocd-1.5.1-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pymocd-1.5.1-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 3b84d707d193bba0e595bb457d690234cafd0f3cdbfdd5df878eb5b77d4c3825
MD5 bf57aabacb854c8dacfa016a2525b059
BLAKE2b-256 b3a40ad82e16cea3346dd657bb462221cc86f66f8e5a4ee8d05786ae43fee0cd

See more details on using hashes here.

File details

Details for the file pymocd-1.5.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pymocd-1.5.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c2c7c88634da6d4705dbc2e2527dba28c8addd5c8cae30daf03c7cc99cf08cf9
MD5 2c9525848e332802544f4d64c60ee0e8
BLAKE2b-256 d1041d6758757e8510e05a67cf026e8b5ef36288857350c4c5f9c909e0520628

See more details on using hashes here.

File details

Details for the file pymocd-1.5.1-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: pymocd-1.5.1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 285.8 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for pymocd-1.5.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d98ee1b08991fdb32a3c0935f79e8e7481530180564ea2833c1cbcfb7f0882e5
MD5 0046d8b25d6b2eaa0ff33cbe0adc090b
BLAKE2b-256 f9a2ff402db8f5ec0c938198786de4ac42aa33dcaf82ea6c471c0ba12d2c5c2d

See more details on using hashes here.

File details

Details for the file pymocd-1.5.1-cp39-cp39-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pymocd-1.5.1-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 39a66b5328076d4e12c16c4c5c51a6d4a27e3a3cd4318fa4ed5ce259affd04ab
MD5 621d82c249d4f5f63ac247a30c7eca6a
BLAKE2b-256 a12afa1a457345f2a27b93f851cdd919e50d319d3aca6b84728fd857704184b2

See more details on using hashes here.

File details

Details for the file pymocd-1.5.1-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pymocd-1.5.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 afa887997ba35306f210cde72c02e5a08c3524c8c0dd22d49266c0b858ea2f80
MD5 5d74c9216374bd3358156484f2ce06ca
BLAKE2b-256 d2911bcaf653afb95339cdc7602178f0986b0c3d6980a3ea903bc0f8db6d36a1

See more details on using hashes here.

File details

Details for the file pymocd-1.5.1-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: pymocd-1.5.1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 285.3 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for pymocd-1.5.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 fcfb0501ca14df9ef6995f456d82dbf9d232bcb44a167243b31b76a67f56d777
MD5 fdfe4b0c1dff97a1cc28256bc65d1dd0
BLAKE2b-256 1b69c7c70007396c5c4fc44cf267bfe625b2bb169b0dba4b428d6ee6d6a54805

See more details on using hashes here.

File details

Details for the file pymocd-1.5.1-cp38-cp38-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pymocd-1.5.1-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 70c461d67ae2aca5ac3e2f7e98b9b073d1cb5a7762cabec2d90aa93bf66915aa
MD5 60713065cd03128630f3bbe0ec867825
BLAKE2b-256 de7c6d309108fadce47f0651412c9e490156cd14be719f3596014d27ddb917c9

See more details on using hashes here.

File details

Details for the file pymocd-1.5.1-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pymocd-1.5.1-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c5bdc9fc90610074a7b3f934479a72a6ae09b6f366a0d8ff10128bf04de8c0b6
MD5 ca1757aa8345c1314a76d035a79c9270
BLAKE2b-256 d81d101bd9d775b93fa5f98f6cd1a3ecae6c232c7f85aac0fc92c6a9b44db1a9

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