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{santos2025high,
  title={A High-Performance Evolutionary Multiobjective Community Detection Algorithm},
  author={Santos, Guilherme O and Vieira, Lucas S and Rossetti, Giulio and Ferreira, Carlos HG and Moreira, Gladston},
  journal={arXiv preprint arXiv:2506.01752},
  year={2025}
}

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.3.0.tar.gz (3.0 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.3.0-cp312-cp312-win_amd64.whl (322.4 kB view details)

Uploaded CPython 3.12Windows x86-64

pymocd-1.3.0-cp312-cp312-manylinux_2_34_x86_64.whl (415.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

pymocd-1.3.0-cp312-cp312-macosx_11_0_arm64.whl (362.6 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pymocd-1.3.0-cp311-cp311-win_amd64.whl (323.3 kB view details)

Uploaded CPython 3.11Windows x86-64

pymocd-1.3.0-cp311-cp311-manylinux_2_34_x86_64.whl (417.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

pymocd-1.3.0-cp311-cp311-macosx_11_0_arm64.whl (365.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pymocd-1.3.0-cp310-cp310-win_amd64.whl (322.8 kB view details)

Uploaded CPython 3.10Windows x86-64

pymocd-1.3.0-cp310-cp310-manylinux_2_34_x86_64.whl (417.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

pymocd-1.3.0-cp310-cp310-macosx_11_0_arm64.whl (365.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

pymocd-1.3.0-cp39-cp39-win_amd64.whl (323.6 kB view details)

Uploaded CPython 3.9Windows x86-64

pymocd-1.3.0-cp39-cp39-manylinux_2_34_x86_64.whl (418.7 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.34+ x86-64

pymocd-1.3.0-cp39-cp39-macosx_11_0_arm64.whl (366.2 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

pymocd-1.3.0-cp38-cp38-win_amd64.whl (323.5 kB view details)

Uploaded CPython 3.8Windows x86-64

pymocd-1.3.0-cp38-cp38-manylinux_2_34_x86_64.whl (418.7 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.34+ x86-64

pymocd-1.3.0-cp38-cp38-macosx_11_0_arm64.whl (366.7 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: pymocd-1.3.0.tar.gz
  • Upload date:
  • Size: 3.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for pymocd-1.3.0.tar.gz
Algorithm Hash digest
SHA256 e313f3a37df533e154a8201d4c6a9484e20ac33f3dfd8c3bbc271e7ee4f095f5
MD5 ebeadd46661a84ba91492cc9c8ca3b17
BLAKE2b-256 baeaddeba773cd27a6c149fa4adccc14b725417602621000703b23add3f8dd21

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymocd-1.3.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 322.4 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for pymocd-1.3.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 02641d02fd6400e545620a401accc3d6de79a80cd0e01c27b92c6847cf42a0d9
MD5 641b582a89b062a4ef8d88cf4d62224b
BLAKE2b-256 ebdaec566bcc72e17a627e450c4599d4de19edbb455ba6162cbba6ca7473bc16

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-1.3.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 5ae184e974ad3a825f353f873ef7a5e876f0677aee7c2604d0e6d15544fadbf7
MD5 ddbdab86f7a2d31b0b8ed30de37dea7a
BLAKE2b-256 39109eacdfbbf96250685df098468530a614ebbff200e0923d029378a6b056f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-1.3.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e379f3560d511b15e3eafa1749539631ed6bfddc5de5e4b45fcdfea66d686f51
MD5 859f19c127cfe630e29f15e3f69fc6e3
BLAKE2b-256 7be415e94ad99457f0d2816dc0784f82224f84b68202c495166bb3fa6d754bc2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymocd-1.3.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 323.3 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for pymocd-1.3.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a519cdc9ea29c50e1b01b7b3353a39ba3aacaa42f12088eabbd7b780097f284e
MD5 2bbc148baae6eb658385208a9174a254
BLAKE2b-256 49a07ef4444659dde1937d4bf81a6a65e152aed219f7ec2fc57c87203863b3d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-1.3.0-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 b03d1a71129fa03a9799b868b70430378d3173156f83c849932563660b527c3b
MD5 de5833bdfb33d6efdf6397bf578528fa
BLAKE2b-256 90cf0536fec808cd7a9158acf4b6c829d7d1850ef8d58f64d239eb269d0f7652

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-1.3.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 728cb8e4772b665dcac84b3a65bd8f828c466fc21fd58c82d5d4ece21dbfdb75
MD5 0d646952eb785239bb3e38a06007467a
BLAKE2b-256 0f782af80029ed9aa202b898c003070dce38c63c04ad9cf777c6c21e7e97af57

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymocd-1.3.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 322.8 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for pymocd-1.3.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 049e86668b95178659e71f64726a6d953d95306ab287437908acbc2b8a2766ad
MD5 d4a1410c1ebb5b68b352c5b794ab4ab7
BLAKE2b-256 e86bb7f0b77939dcf24ecd3f82fef449c72f97750f0d63abae5c41b6d0c9cd3a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-1.3.0-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 689cb4646751badcb8d57cffd2350d12d4a61129d3ad4d67e508bae3de6b9ce6
MD5 755b7fd9ab020b5566f5b3e7c61ee5cd
BLAKE2b-256 0415ebf7ed629bba09782bcfa5b6f8d6004083b64fd942a8375abfe319be1434

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-1.3.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f47f8ec30e98751d0e360deaade1fe81f1beb2f00daac4a664325a3b10a5d6ef
MD5 260ac0920b3fb97438051f3a05c3ba56
BLAKE2b-256 821108402285ccbbfdfdfad40a29ee2251e28818328a13d12a751fbfcff4cd6b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymocd-1.3.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 323.6 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for pymocd-1.3.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e7455aa867f7a9ec40aa614ae74a6dec4c0379fc1dbc836d837197f43eee4460
MD5 a77a44a7b9fea8b82a6dfc7c0868f502
BLAKE2b-256 69e27b08fc3f334e4cf1da01e2d69c350d7b1d763e7c6f39e48bda2be9d68048

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-1.3.0-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 6ea3d774518cbde4960039022d8c74ee3ec55b538a48f623b35fd32c0518d306
MD5 96c444ffac365e7548d317a215b16215
BLAKE2b-256 43d81fd30fa653dd278655f40ccc1bb99eabf9d1d25fcb834b9c6f0bc257f9d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-1.3.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2563cc17709141b1347f7519626279b887ada0a759fecead7a29ca59d2fa1afc
MD5 ca44e74e08d12c0509a6d0a30e28ad09
BLAKE2b-256 3edf8b2d3b8d90f0b1ffc2dc8d563467d47aae18d61ff3146f4e0910bad9c567

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymocd-1.3.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 323.5 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for pymocd-1.3.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4ce269c3c46a17ad08f86ff07ed777895051201388eef5f3463f4d08bd62d53a
MD5 6237568f115f4329775e5383db954a1c
BLAKE2b-256 05b7966f2d66e5cc4aa2a8e5664097600dd818f3c4b4bfc4c48718160f6cefd7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-1.3.0-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 7f44b2791fa93dc87ce7b6df1a6f444f719b46704295e257065b06b828690304
MD5 fff8d412c0706941cec3d867377a3bca
BLAKE2b-256 49fe2dffd75348f4a4c46024b542723b3e798c8d54805a81478864ec7312acb0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-1.3.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 95ab45edbf43430b9e78bc477500240fded76c1daf780a44a2885fa9ffcdea05
MD5 c353bdc543635f0e24e38c4da41cdeab
BLAKE2b-256 f672780864e49c4db18cba1b77789e5ae7fdb0be14088702444677c09fa138bd

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