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},
  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-2.0.0.tar.gz (306.1 kB view details)

Uploaded Source

Built Distributions

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

pymocd-2.0.0-cp312-cp312-win_amd64.whl (304.6 kB view details)

Uploaded CPython 3.12Windows x86-64

pymocd-2.0.0-cp312-cp312-manylinux_2_34_x86_64.whl (411.5 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

pymocd-2.0.0-cp312-cp312-macosx_11_0_arm64.whl (357.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pymocd-2.0.0-cp311-cp311-win_amd64.whl (302.8 kB view details)

Uploaded CPython 3.11Windows x86-64

pymocd-2.0.0-cp311-cp311-manylinux_2_34_x86_64.whl (410.7 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

pymocd-2.0.0-cp311-cp311-macosx_11_0_arm64.whl (360.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pymocd-2.0.0-cp310-cp310-win_amd64.whl (302.7 kB view details)

Uploaded CPython 3.10Windows x86-64

pymocd-2.0.0-cp310-cp310-manylinux_2_34_x86_64.whl (411.1 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

pymocd-2.0.0-cp310-cp310-macosx_11_0_arm64.whl (360.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

pymocd-2.0.0-cp39-cp39-win_amd64.whl (303.6 kB view details)

Uploaded CPython 3.9Windows x86-64

pymocd-2.0.0-cp39-cp39-manylinux_2_34_x86_64.whl (412.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.34+ x86-64

pymocd-2.0.0-cp39-cp39-macosx_11_0_arm64.whl (361.5 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

pymocd-2.0.0-cp38-cp38-win_amd64.whl (303.6 kB view details)

Uploaded CPython 3.8Windows x86-64

pymocd-2.0.0-cp38-cp38-manylinux_2_34_x86_64.whl (411.6 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.34+ x86-64

pymocd-2.0.0-cp38-cp38-macosx_11_0_arm64.whl (360.9 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for pymocd-2.0.0.tar.gz
Algorithm Hash digest
SHA256 d9996e2457c17979a3220ed54e32003ff862fd20537bea18d5f5f0101be26f18
MD5 889e7c05554184cb5a6c83ea1455de5d
BLAKE2b-256 6d25986c1c90fdbc014d3659cdd68d00fcde016bc8f6c3db4b7dc79c4ec1ed53

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymocd-2.0.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 304.6 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-2.0.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 11e29bc90657a72a187f1128090f833e06a43713e2bbb6747de4ce34e9330e17
MD5 4fd28a46d0db96f59770a9d8c724cb2e
BLAKE2b-256 0bda57fa309909dc45542799d0e4529b0b59125c30a687b5cc8d48ae45105acf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-2.0.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 95c0086bd1d1d32d5f3689b57a3aaa2276c30fd382ce3f66540fb50e1874300e
MD5 76c917549fc74b88a783ca09be1c1409
BLAKE2b-256 440f33534a80c9795af536d28b07f2e4f165bc07487935359917f91bc159c828

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-2.0.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dd039707363a8fba162f33659f31ce0803ff375db5d4d57bc5b54ab8b8710723
MD5 2d2d4c4be7831ea8c85b7db1ec9c2d0e
BLAKE2b-256 81cc2442eadc580640a13324676609bd17040ab897d2edef28e6c5458dfcd2c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymocd-2.0.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 302.8 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-2.0.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a4fcc629495f841e0903e9ff66ab907c7eeb09ecad1bfbe6fdf38c6c585723bc
MD5 2090943f509e533ee40dde91ee65eee6
BLAKE2b-256 54302cf87ba7b55eea12576873547efc6065aef54f7e4b5dda6358ddd30ae21c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-2.0.0-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 2a281cc500e7d85739e50bbb880606a4816a48674355d8e52a48a53d9453525f
MD5 cd269459c0ca2cfe1b99746c47329f0c
BLAKE2b-256 763b18b8768ff5c7d43a6eb2f9f95fcddba3853f486724de9b69bda8ed3a4285

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-2.0.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8f0a476531d14815f5fabf893d4d2f1ae9478bc38a19985fe8b36647f6d5b4ed
MD5 82a8c56d059a9e6c6bef5745b601f4c6
BLAKE2b-256 d23b4357e7a9695decf98f2a025b230f1651f64dfd3165f460d21aa4582dd7de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymocd-2.0.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 302.7 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-2.0.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 360683f0cc746ad40c4b18299418f6fb7ee4ee1fd796d70b831057f528da4e7c
MD5 44867dd569f87b380f0b90320646bee1
BLAKE2b-256 71a3bc5faa50ed7db6da4442cf5cedc86e2e054d6820b39644d16bcb0878464a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-2.0.0-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 5022dd76d4aa3daa59d9c27f76644d3b21a55bf77b58cb52d82aa0995c18a708
MD5 9542cfb9f1bee82a87553153bb76e848
BLAKE2b-256 1dab213bfccc195c85e0bc99db985709f3cc97775f4b19a36183f528dc9234f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-2.0.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 39a72b45e8cb19f4821c776c91cf7c18c871e1e575d8653565adedec2cfe9771
MD5 57b20d9a7925350f8c064e9ca29a3db9
BLAKE2b-256 459dc65150bc3d27eafcf68695862bad29eea6e8d45ef9d884cce63a52458159

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymocd-2.0.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 303.6 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-2.0.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 195b88d18945b6e2c36a790235cdd35dc660f80882ce74fbda331407971b289f
MD5 6d9d3bfa1d9d1b8b86d93f7a7546915d
BLAKE2b-256 adef492bffde8f161a092902b1f7bcdca160515ea0da9ca7a661be84a5ffcfb9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-2.0.0-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 096fee86109e4fdf8b33ee1e0f88929af2fc48360ba5c0f2e92dc69c0685e107
MD5 13462bd68bce9cd73e585a9698af2326
BLAKE2b-256 879d119b987b9bdcc0e3ea96393e6bd7f29fffc4fea35e68a255f4e1dab63195

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-2.0.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7d5def5dd20510bb75b518cd5151a4afc7a273887a16d1dc2e143c498dbbd459
MD5 ea68c6c7c67b64005351bd77a3f3d5d2
BLAKE2b-256 dc81d93579d61688a522c71d5e3fcd2712e83effbc07a1286c8b650f8d79243b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymocd-2.0.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 303.6 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-2.0.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d3ae1b06b6c0f305afe08ccaec7e5a7e5d6e3a5ac54acfd12630f5de30bd7fab
MD5 34dd6cfafd0ab38d199110f3ddc9f32f
BLAKE2b-256 6a159735addb22c5a136f38b62bb56a6b74543f4ff7b1951f5bad1ce313a6cdf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-2.0.0-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 c8b81ba442380e8cb04a61e29387586fe7ec629bcd1f62da91d0ab41c4b3387b
MD5 afd3bc42e56886639362b05109b21bd2
BLAKE2b-256 2171d9f70e5bf9722ea35c8af0ffde137dde982c1dbae937be3ad1bb9fec920c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymocd-2.0.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 516d995bd18ae4344ef27b7e0944ecdd77acf6736f93c32fd83eaf1a6461a51a
MD5 701b91a9917f989c2d363a347e397703
BLAKE2b-256 b34b17f3f683aa957c32688c80945ae958103197aab822db7c37e927eae05c75

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