Skip to main content

No project description provided

Project description

pymocd logo

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.


Community Detection

The HP-MOCD algorithm for example, 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, PRISM 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},
  doi       = {10.1007/s13278-025-01519-7},
  url       = {https://doi.org/10.1007/s13278-025-01519-7},
  issn      = {1869-5469},
  date      = {2025-11-18}
}

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-3.0.0.tar.gz (326.7 kB view details)

Uploaded Source

Built Distributions

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

pymocd-3.0.0-cp313-cp313-win_amd64.whl (386.2 kB view details)

Uploaded CPython 3.13Windows x86-64

pymocd-3.0.0-cp313-cp313-manylinux_2_34_x86_64.whl (486.4 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

pymocd-3.0.0-cp313-cp313-macosx_11_0_arm64.whl (434.4 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

pymocd-3.0.0-cp312-cp312-win_amd64.whl (386.0 kB view details)

Uploaded CPython 3.12Windows x86-64

pymocd-3.0.0-cp312-cp312-manylinux_2_34_x86_64.whl (487.5 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

pymocd-3.0.0-cp312-cp312-macosx_11_0_arm64.whl (434.2 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pymocd-3.0.0-cp311-cp311-win_amd64.whl (388.6 kB view details)

Uploaded CPython 3.11Windows x86-64

pymocd-3.0.0-cp311-cp311-manylinux_2_34_x86_64.whl (489.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

pymocd-3.0.0-cp311-cp311-macosx_11_0_arm64.whl (435.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pymocd-3.0.0-cp310-cp310-win_amd64.whl (387.0 kB view details)

Uploaded CPython 3.10Windows x86-64

pymocd-3.0.0-cp310-cp310-manylinux_2_34_x86_64.whl (490.1 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

pymocd-3.0.0-cp310-cp310-macosx_11_0_arm64.whl (437.4 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

pymocd-3.0.0-cp39-cp39-win_amd64.whl (390.2 kB view details)

Uploaded CPython 3.9Windows x86-64

pymocd-3.0.0-cp39-cp39-manylinux_2_34_x86_64.whl (492.8 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.34+ x86-64

pymocd-3.0.0-cp39-cp39-macosx_11_0_arm64.whl (440.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for pymocd-3.0.0.tar.gz
Algorithm Hash digest
SHA256 4866d726c38f37364eb5c710f4623b136eac99243f9347b80e4a9cfa37abb7f8
MD5 85ad060546dd723ab9107e7277148325
BLAKE2b-256 8bcd81031ae392a7f8c824921c16fefde6728f89f2ce55c130c9a1331ae32dce

See more details on using hashes here.

File details

Details for the file pymocd-3.0.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: pymocd-3.0.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 386.2 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for pymocd-3.0.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 1ec27d60c14a8194d72ec96bfb1e481e9a8bce587d3e6810d29231b00d6f05a0
MD5 ac40f053b0590b1dbc014f57367d6e8f
BLAKE2b-256 aa6e3bf9d28797891b290f5e97e2e1c2e575342cdb5a79c6b0a8a5b8df1f996c

See more details on using hashes here.

File details

Details for the file pymocd-3.0.0-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pymocd-3.0.0-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 516227207038d3d0d5a027e0a759b6fa6b4154b13a9e23d71dc8fb0c95e5e917
MD5 046d9a72fd8467c02988a4cf4d044788
BLAKE2b-256 d0df3fc67db5ba2776336263601ad449865b09ccdb44f6561ac866f77e676ce3

See more details on using hashes here.

File details

Details for the file pymocd-3.0.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pymocd-3.0.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1a602bd1defdc577e9068dd50134a7ffd7f82b07ad4a998456fb4d86096c6eef
MD5 78b856c1c39c1d95cb81b4af95a18045
BLAKE2b-256 f3c94e2f3049f49025841a3e326171d004d7d329699e47b39d1570bcf264e3af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymocd-3.0.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 386.0 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-3.0.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0825c90b294eb01831a28a4b57cd3a3fafb2d1edea54874d594efde43dd618f6
MD5 9e76ed8dab1ba697e4b8211f4accb5d9
BLAKE2b-256 771d1b01daf87792c79cc7db46aef19417b2c4fb44e77c5d88f6d5690944768b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-3.0.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 54586685dd303944a680860dbfa7d351104cee1ff73c7be1beea5f5bdb12943e
MD5 c246dfbe3c037992bb7e514754a9fc58
BLAKE2b-256 0ad6951ed0b257e3118b7ee7a3c6c474c59355f0394d86c9fb972345f5fd7e07

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-3.0.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3fe4aa3b38519556fb539efde84b73bff092a17711344b32eb48f3098f3c064a
MD5 e47755bd8816b3ab451229c661653878
BLAKE2b-256 94fb821cbe18056c25bc0ec2413c4527e1af72de0def6ec417d85cf69afea6fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymocd-3.0.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 388.6 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-3.0.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6e92f5bde7c682f59df3da223d045bbbb51868e71d71fffc23ab40595819b651
MD5 a1f2a8e1edad0e26c40f19093ab764fc
BLAKE2b-256 27c05e7165f792b73d7618f1e247ede468eac57d55b579ea6c6338b0f9fb4583

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-3.0.0-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 ecca107bca8ce2287c4aa229e6f2ef68faf8b86d3c10bb1e9e58a2ea92db8b29
MD5 bac5c184c9cc46c6c30ee26bc71bdf71
BLAKE2b-256 d0556f1f12ff16947554a91675ff6a4789577a1a3c376ece17860d7ad4d50b64

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-3.0.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 72f0e6edc408f7559efffe7db9f8080fb8d73cae1cfbe8b348c4c393889d9c86
MD5 5f607fe4bff013002a154610ef41ece4
BLAKE2b-256 bbd82fe7505e354cdeb2b76af7999369ea4895971fbbfcccc070dd4776e4954b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymocd-3.0.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 387.0 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-3.0.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d25ab1de067c98b613db3ac3eb4bd776ba2a18584c9d64621231e7478d27e3f3
MD5 89ce455192d031230c7d53a8427c0532
BLAKE2b-256 a35bbe9c18e0d0ba2522fcad29802e7e7580be5e5dcf04fabf475ebd1cad31ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-3.0.0-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 6e353646785ea4e43b1411f9631942ce071a50196e619aa1402bcf25b3656e63
MD5 d7f87a17bb499f8f1542aa84c928f8c7
BLAKE2b-256 bae4d59d0e96efa8646710ff5bd485b53ce7375519a61754d0ef1623c396d326

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-3.0.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7124503d0e5b64da887ef18cc2b9668e6d45e5ec265ce046a1e39ec14469341e
MD5 c120530167b4f3a867b6cf6965166f81
BLAKE2b-256 ba2a4e8f6cc79fbb46ce1f2283b135ffd9f9659539e02d304ced10d800f0fed0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymocd-3.0.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 390.2 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-3.0.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d0e49c5f31c17e9321038982634d5857f2a3c9ac5dd03291ca3998b6b699d7ca
MD5 78f5fcd2376f1b5ab3cfc6f4715c8ca7
BLAKE2b-256 fad78cdcf2effc808613175a498210d20220d04688a432c945cd05d5eef0f938

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-3.0.0-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 ccf2931612a4d28c9ba8c0af21e1f8c8f7c943b253633b63328d077a52cde69b
MD5 37a4fc770bf5bba4692dba1336301a90
BLAKE2b-256 1ef0a33ac8ce1ef05d87d44914452b13bf835677a8b2c97de1c2adaa5526d332

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-3.0.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4f9a99e57207bf164df562662ea66f039448e205ab92ebad6071f3b23e0a1dcf
MD5 1b8a9af64c75a6af48e155969ab4cad8
BLAKE2b-256 eff0deed9fcf66beb71cf47bf28dbee8b1162c0009fa37540e020b6548f5eeaa

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