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.2.5.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.2.5-cp312-cp312-win_amd64.whl (391.7 kB view details)

Uploaded CPython 3.12Windows x86-64

pymocd-1.2.5-cp312-cp312-manylinux_2_34_x86_64.whl (478.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

pymocd-1.2.5-cp312-cp312-macosx_11_0_arm64.whl (425.6 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pymocd-1.2.5-cp311-cp311-win_amd64.whl (391.5 kB view details)

Uploaded CPython 3.11Windows x86-64

pymocd-1.2.5-cp311-cp311-manylinux_2_34_x86_64.whl (478.3 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

pymocd-1.2.5-cp311-cp311-macosx_11_0_arm64.whl (425.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pymocd-1.2.5-cp310-cp310-win_amd64.whl (391.1 kB view details)

Uploaded CPython 3.10Windows x86-64

pymocd-1.2.5-cp310-cp310-manylinux_2_34_x86_64.whl (478.5 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

pymocd-1.2.5-cp310-cp310-macosx_11_0_arm64.whl (425.0 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

pymocd-1.2.5-cp39-cp39-win_amd64.whl (392.1 kB view details)

Uploaded CPython 3.9Windows x86-64

pymocd-1.2.5-cp39-cp39-manylinux_2_34_x86_64.whl (479.3 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.34+ x86-64

pymocd-1.2.5-cp39-cp39-macosx_11_0_arm64.whl (425.7 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

pymocd-1.2.5-cp38-cp38-win_amd64.whl (392.1 kB view details)

Uploaded CPython 3.8Windows x86-64

pymocd-1.2.5-cp38-cp38-manylinux_2_34_x86_64.whl (479.5 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.34+ x86-64

pymocd-1.2.5-cp38-cp38-macosx_11_0_arm64.whl (425.4 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for pymocd-1.2.5.tar.gz
Algorithm Hash digest
SHA256 58fa769f1b297c5609edb632373ed748ed3a4e0d0337853e34e27a217fc47f2a
MD5 46c36e2a62815b990d2168da21c665ec
BLAKE2b-256 e32d0d61c2a3fe9d7bf0c12fe2601c96780813f19eab3850bd2149b68fc46150

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pymocd-1.2.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 efaa5638422a3f172b50f1ddb1b189be6ba8c745dfd5643cd43a2ae0b7b21b0e
MD5 a9fd475b70dde7988a535fd6d1026efe
BLAKE2b-256 fc15a40ea8b4e7fe977e377b70ee3323650f9939349405b8864394e83148afbe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-1.2.5-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 c592f2b2f8c4d6f4a0c8ac08098c4c0c73cc2b7d1d3cae7098a2660df312f1e8
MD5 e010d88c2cd2e8269b07fbcca0d3e692
BLAKE2b-256 8c530a270e6b61fcfdfc6afaa2b093d404ea9d09dd38640bb7cc1951455744ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-1.2.5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3fbc1df5b848f2719c6f746dadd0fae87c69fa5f0e330a8edc18e2f82553717c
MD5 f7be39dff0e2eedef73a9cd165db17b6
BLAKE2b-256 747e2c43c2ef8f0eec9747f9e06ad21b9c8f3e9ad6a7cd6a8ec678916124430a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pymocd-1.2.5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d7c1661efe1efad1e599cb2a8cb1b008cf8f9ed8d39f7995225a9d6b32bf1279
MD5 4b535a1a19abad6ee80dcf5866a608fc
BLAKE2b-256 631efa0403df5dd91385fc4c38a07b14af36c59bfc6de65bd8fef5cd2f57d140

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-1.2.5-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 46691e51c2e4a5a9cef2885fcb55cd0c8f15a58de8857ac2158abaf934309395
MD5 51412aad142c5d0072eb33406b1b22f2
BLAKE2b-256 ea8f56cb1bf559bfc2c9a5050fee3a83b1136b7e874a6b20f3e10c4e705f6675

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-1.2.5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c15d84321c2a267edda45e7ca9926921f75361fdecb4a9fdf1d4d16eb54dddb3
MD5 b9946bd0fa1265b55f62f366047a0d71
BLAKE2b-256 bedfac98af6f038e6be4febb781b9468d435aaba06d2d71cb901232c4607895a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pymocd-1.2.5-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 59daa4f7be16624d904bf8515ee410c0647a638157a0dd21fbc260a76a749720
MD5 8792a7dd3458bb8a91d73750e84555a4
BLAKE2b-256 e45a94bdce1f5cb3b5444433ca16d709aa11bf957563a71512bebba095b41ecf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-1.2.5-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 04620a47e8819955e53dc12a43b8354a0edfb2a844f3379155fe0fac1008b273
MD5 49e783e9d1ab4bb04c26f2d211fc4145
BLAKE2b-256 3d115461e834c65118673cd7fb9eb41c80d8a88b278f6b58a32ae0a22cb0e4ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-1.2.5-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1fc2571b79cdc84dec386c48ad6947b197cc19b72609faa78fa2095c1b45fb1f
MD5 4d1511ed596ae7d1bcd84032ec5a2c1d
BLAKE2b-256 1d9ee3fffc5afca171ef51beb721dbab2c79634330b0b9d3b8d678b50980c721

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pymocd-1.2.5-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2d9978700275c869e18616eab236de2aa8a7d6095d6ea8adf4079e95cf251858
MD5 40b1ec0273a72b40abbe62285b76d2cf
BLAKE2b-256 146750a8e11eaf3aca9ad34453035420223bb42d19679fbfcdf65d7b7cd9ab93

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-1.2.5-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 cd576590f5496804fdd307648a7a9b73e0632f0b5cb99fe8250d52e38325a79b
MD5 a58b2e882f3a254fcbe100061d66d435
BLAKE2b-256 76de98970d8dbdb672f9c9145c220834cf703be84a019de5d9438284b05b1eca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-1.2.5-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7b40a80b51bb2e8e7ce431251a086c39fed88a20f88cf8dae9af399f3bb80f9e
MD5 22ea6acddcc20c91aadf2b2b298276e4
BLAKE2b-256 94f734bea78c7fd78605a5ffc0c901591c33d7fae7a6f73f808fd14fb679f3bc

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pymocd-1.2.5-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 bd345d960edfd9a43938a5d03bea8def8030a4b9d520e5669e3d51612eae8c5a
MD5 5dc981fa239e8cd787744fa23626a1f9
BLAKE2b-256 319cbfd995f76185f615aa1274b3c781e69af0a0a409296cf32c10e39eb92a13

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-1.2.5-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 b23b49659641d86577130cd99f977e0249ad786b787e433dd29e232ad7679903
MD5 50d2c31bc848373f4c70d4b9caefcd10
BLAKE2b-256 003d49f7f54b07de0d85df715efc30d1c433139925c3807e2a16211cdf2b129e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-1.2.5-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9f704b2354014bbeb7aa103f38ffbe7919230effae22253496c904da40779191
MD5 908f2b0478d09afb42546fb70a53d800
BLAKE2b-256 a99810dab94f106ad6d718d801469220b7eb885a9d3542aa388e087da292c550

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