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    = {Guilherme O. Santos and Lucas S. Vieira and Giulio Rossetti and Carlos H. G. Ferreira and Gladston J. P. Moreira},
  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.0.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.0-cp312-cp312-win_amd64.whl (290.4 kB view details)

Uploaded CPython 3.12Windows x86-64

pymocd-1.5.0-cp312-cp312-manylinux_2_34_x86_64.whl (411.9 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

pymocd-1.5.0-cp312-cp312-macosx_11_0_arm64.whl (349.6 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pymocd-1.5.0-cp311-cp311-win_amd64.whl (291.1 kB view details)

Uploaded CPython 3.11Windows x86-64

pymocd-1.5.0-cp311-cp311-manylinux_2_34_x86_64.whl (412.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

pymocd-1.5.0-cp311-cp311-macosx_11_0_arm64.whl (353.5 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pymocd-1.5.0-cp310-cp310-win_amd64.whl (290.9 kB view details)

Uploaded CPython 3.10Windows x86-64

pymocd-1.5.0-cp310-cp310-manylinux_2_34_x86_64.whl (412.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

pymocd-1.5.0-cp310-cp310-macosx_11_0_arm64.whl (352.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

pymocd-1.5.0-cp39-cp39-win_amd64.whl (292.8 kB view details)

Uploaded CPython 3.9Windows x86-64

pymocd-1.5.0-cp39-cp39-manylinux_2_34_x86_64.whl (414.7 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.34+ x86-64

pymocd-1.5.0-cp39-cp39-macosx_11_0_arm64.whl (354.5 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

pymocd-1.5.0-cp38-cp38-win_amd64.whl (292.7 kB view details)

Uploaded CPython 3.8Windows x86-64

pymocd-1.5.0-cp38-cp38-manylinux_2_34_x86_64.whl (414.5 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.34+ x86-64

pymocd-1.5.0-cp38-cp38-macosx_11_0_arm64.whl (354.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: pymocd-1.5.0.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.0.tar.gz
Algorithm Hash digest
SHA256 bafec7ccbcdf895bc19c5f02e8204ecc93af7a5385f928ab7895e6dc0d707f64
MD5 b895594cc6cd14d84aafd2be1943e31e
BLAKE2b-256 915af7a6c5037058e0cde7ef7e6e2a0f08b46182859ccecbea1d9e47f1028e25

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymocd-1.5.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 290.4 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.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 548dde36a6bae0d4a60534b5cd2b004e74d666273812e5059fad983e4240edf1
MD5 2065516d68b06359553c35a2e4def896
BLAKE2b-256 5a0ac028cdb1f379cb3ba93e34dc8a156a34d30aa1678b50ab5dfb18506adbe6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-1.5.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 fc948f419fe7265694166f972f2f4bf1e236d56920d28e8694dcb7734004185e
MD5 d1eea1e9453cdc01d7efe37a5fcb6a1e
BLAKE2b-256 31571e7fc22ceed919957f6a7a38aa7bbc67234cc2b404c7d48e6a334f4b7821

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-1.5.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c6d86b0d6ed7d4091a5291f934da7eb9eefff36849356945e1695646af72cdba
MD5 2dac30282a6e7fe6940db2b8e09e84e2
BLAKE2b-256 10070e2cb2d8cb04dfb7590da043ca7ea2a7624ea1c88afdcb4082849c4357d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymocd-1.5.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 291.1 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.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 bb58aaa948155a6c359906a55c034ba722affaba57822d859b33637e62c89033
MD5 9608f27f158e22e87b0a76d06da0cdf2
BLAKE2b-256 86cc7a600af785c84459b76eacb48a7e997a26fb7dddc80a57b13bcd7fa1a722

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-1.5.0-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 3ce7b98eefc98484c26bc1a4eb4a1982f325bff9e9ea44193575aee049f764f3
MD5 879f1d963c4d06c30858fd78bb4587e5
BLAKE2b-256 15f785644c35d2380236441cfbe935ea5c4c734d757bf55e61b1a954f5f52c8c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-1.5.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 db240159bc50f92a2aec4025dd8a85048301c0764dc60aa2474e879596f9ae72
MD5 be8c2d7852050bb18ea59316f9681691
BLAKE2b-256 192169ceefd6f125cf89e3ac37c8d4a32fc97c695dd4ef08acc39c8345d03c64

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymocd-1.5.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 290.9 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.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3ce57d823087a109eecdb8f45fce319f66ae1be34610a1456e78e3648fd83624
MD5 7038dd54d60578462af3d62961798181
BLAKE2b-256 eefd66cef126e551b9d3e9631ab2bfbd93eaa6126737df58c0fb02594b3366f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-1.5.0-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 128c64aa3aab199cd007384f136b0befa3221f0c25df5132a4b90c55a8e43c9b
MD5 390f0ad341ffd4192e2f3a5324c27c09
BLAKE2b-256 742c58a42b07c475bca1e26a030f5cbea3a781072acdc6fa9a1653904d8eb1db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-1.5.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c69a494dad22b39be9c4dc12a92136d32f1b5e0e7607793e3a4f7f3fc233326a
MD5 1dc98dd3484fa80a37b3cf66514a948b
BLAKE2b-256 e674cd781e04cd5fb9b78bca45f8b1fe63773c65cc6284c159346ad165748d27

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymocd-1.5.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 292.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.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e87a99f2023a8013555a5561bb2adcc9c8935336dd5d1afbf861541d6a55f921
MD5 f3d221506c56cc75b471805837d55425
BLAKE2b-256 5eea13bb292ebb46c016a6eed99cbf32eed8fd3b5db517e44d296b9007198fb9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-1.5.0-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 dfe9897ac22308cbfa2dd69f2dc59ee765cf45174c1454c676a18ae3953788b4
MD5 5002d6f9dd461fb7878360d42b613941
BLAKE2b-256 3a37d5f45e3ee0686266bc52a47ca018c6c2df290a71c7df54221e66bbc1bd70

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-1.5.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 88f270e5cd1d56251f162718c937e258206033cdd5a45ca16d052b77e6fe4b30
MD5 4dc532447cfcdf0f0159cf5e5802b9ad
BLAKE2b-256 e85fa429a32c964b233d62dd26c869a32ba6e5b7809aedab9a25341fdcf488e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymocd-1.5.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 292.7 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.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 64aa38391225965c1c10ab98e1dc8f2257c5ebc94b52f49d7bbd6bef6ee5796c
MD5 8eb639ee1d0a354ed16562ba395ab949
BLAKE2b-256 8a84b24eb55a5d175858fbbe16c2c48ab8b197901658aec7331c4e7d8bdfb9bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-1.5.0-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 ebffdd6849456338e7c54daf94a7a102585a16551172c1f66ea155a33d5a71a1
MD5 345018b86e1aabc07e3a771146e19531
BLAKE2b-256 ed749ac9606cbfdae0cbcf436273fcfe59e4cccd0f18f94445c820d3f560510a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-1.5.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 136718e000c84e7b2d1610d41aa6626ce6ebaf34cfe78a8f1e463ffed201fe5c
MD5 731ad464f69c335ead084b45fb52701a
BLAKE2b-256 fed2ae0bf849085a465fe4391673717e81a441c91d9b164c4d5da90b72ec81cc

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