Rapid multi-objective community detection with parallel computation and caching to efficiently handle large-scale graphs. With networkx compatibilityy
Project description
Overview
re-mocd is a Rust-based library designed for efficient and high-performance community detection in graphs. By leveraging the speed and memory safety of Rust, the project aims to handle large-scale graphs while addressing limitations in traditional algorithms, such as Louvain.
Installation
Via PyPI
Install the library using pip:
pip install re-mocd
Usage
Using re-mocd with a networkx.Graph() is simple. For example:
import networkx as nx
import re_mocd
# Create a graph
G = nx.Graph([
(0, 1), (0, 3), (0, 7),
(1, 2), (1, 3), (1, 5),
(2, 3),
(3, 6),
(4, 5), (4, 6),
(5, 6),
(7, 8)
])
# Pareto envelope-based selection algorithm II (PESA-II)
partition = re_mocd.pesa_ii_maxq(G, debug=True)
partition = re_mocd.pesa_ii_minimax(G, debug=True)
# Non-Dominated Sorting Genetic Algorithm 2 (NSGA-II)
partition = re_mocd.nsga_ii(G, debug=True)
# You can check the fitness value of the partition
# returned by the algorithm using:
mod = re_mocd.fitness(G, partition)
Contributing
Contributions are welcome! Feel free to submit issues, feature requests, or pull requests to improve the project.
License: GPL-3.0 or later
Author: Guilherme Santos
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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file re_mocd-0.2.3.tar.gz.
File metadata
- Download URL: re_mocd-0.2.3.tar.gz
- Upload date:
- Size: 194.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af702f68e8f8b7d847e7ea11a88ef3a15eac134782c34da1fb3a708bfe471875
|
|
| MD5 |
0e25b0007ba4be64c7450cbfc53ac08b
|
|
| BLAKE2b-256 |
028ec8089357951cd8a9693dea51bf926d0df9bed4005fb0f9b1de74ec9fc276
|
File details
Details for the file re_mocd-0.2.3-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: re_mocd-0.2.3-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 354.0 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b006cbd32682d77a5564c58a5cfc8271eae1ce930007f95bcbe3048ee5eddf46
|
|
| MD5 |
a92ec367682551012cf38b1df803e0e9
|
|
| BLAKE2b-256 |
8a4f89ec6dbb60cd70f857b38d3185692c742a7fad221714a52d0838f3b60a54
|
File details
Details for the file re_mocd-0.2.3-cp312-cp312-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: re_mocd-0.2.3-cp312-cp312-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 442.9 kB
- Tags: CPython 3.12, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6cc2e9f93bd7592c2dc2c31cc2f8552ecb4b91c4bb29702973eabbf47f352021
|
|
| MD5 |
6386545a322d9bcf4c8e7ed50c749b4c
|
|
| BLAKE2b-256 |
8470f90b45834230adc32613b8e26d04d33f5592c979706b8fe60ff521f94b30
|
File details
Details for the file re_mocd-0.2.3-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: re_mocd-0.2.3-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 392.6 kB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abeffc03f68e7871e7c7d9ba1152597741727246ad00c669064cd4ebd65793b4
|
|
| MD5 |
575ec96551a88d3e9adbc4cf2a37a621
|
|
| BLAKE2b-256 |
ec22808a8d344f673c5c3c6f21ee5fbc9a32bdac1c6fcf5b493eb8ad153193c2
|
File details
Details for the file re_mocd-0.2.3-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: re_mocd-0.2.3-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 354.4 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c7ddcd3843344241a1ee9ce092b6f1b31cf93de55d716fea3801b155be45ea4
|
|
| MD5 |
3f31ef57fe741dc38cc827f17791fad8
|
|
| BLAKE2b-256 |
0052a012a29aaf381267fa6db766c4edfd81aa2f2c0edbf9ed1d44cb47487936
|
File details
Details for the file re_mocd-0.2.3-cp311-cp311-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: re_mocd-0.2.3-cp311-cp311-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 444.1 kB
- Tags: CPython 3.11, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10eaef46c3ed00fd6eee950bad70a4419cc893482ee50d2d607185e739870a27
|
|
| MD5 |
6e243a61318c2a5dc88c14599d2ee535
|
|
| BLAKE2b-256 |
15acfe4ace53c70fe0793f913ffd09e13da1e13450b06e74effecdc10bd3778c
|
File details
Details for the file re_mocd-0.2.3-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: re_mocd-0.2.3-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 394.7 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6940f28a5908a57672ed77bb9a64a19928ed24dbda84c11f97a48bad313f69c
|
|
| MD5 |
27615541314cabc8176e0ee0b4f59a65
|
|
| BLAKE2b-256 |
6fdf28a8345bb79609bd50e15da35500b46dc8a7f46e03d76ed88a79f744bced
|
File details
Details for the file re_mocd-0.2.3-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: re_mocd-0.2.3-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 354.7 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d5b62984f259db702797cb3274459928cee952d24dc31b313f9ab5bb5c89fa0
|
|
| MD5 |
6436f430b199ca7c70e7a87a42fffade
|
|
| BLAKE2b-256 |
4d5da9da0716f045c498811f75a86c9447ca1b13590c600156d07547e4eb4250
|
File details
Details for the file re_mocd-0.2.3-cp310-cp310-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: re_mocd-0.2.3-cp310-cp310-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 444.3 kB
- Tags: CPython 3.10, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ddfe8bfd32b2004fe97be906ac9be52a65f76ceb97371e34b3226d50d348d957
|
|
| MD5 |
bcd1b9408be35ae22cc40e55425ef082
|
|
| BLAKE2b-256 |
8051282c90f5b355ef0e83eb0e0bd044c8d14c6f504fda3057f0be67228156d8
|
File details
Details for the file re_mocd-0.2.3-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: re_mocd-0.2.3-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 394.7 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30fc4b698583f8c428e0cd278c45f653f277acb313eb198ab76b65658304c3a9
|
|
| MD5 |
c796b6b061f5f61d34133f9704ea4fa8
|
|
| BLAKE2b-256 |
d41e49d9f5414f23def2dbed05edf4c02fa3041d9f78336527babd6a924350ba
|
File details
Details for the file re_mocd-0.2.3-cp39-cp39-win_amd64.whl.
File metadata
- Download URL: re_mocd-0.2.3-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 355.3 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9fdff374883ad210d64f202a90052f40db0515d2e99b20ef06303e4a00ec5c0
|
|
| MD5 |
2b4c72b4706ee39b8987fa9ad6865f87
|
|
| BLAKE2b-256 |
ece167c3037e2600406a0b62b3c86fe5d31610a75b5eb8ad7b9e629d5a9fb9d6
|
File details
Details for the file re_mocd-0.2.3-cp39-cp39-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: re_mocd-0.2.3-cp39-cp39-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 444.8 kB
- Tags: CPython 3.9, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed4da9436d9901448e1238551654bad64221b359ee3ca4fc106b4f68a5f1e0cc
|
|
| MD5 |
94b78e213fac0079a137beef9aebbfc3
|
|
| BLAKE2b-256 |
a52eb39612a9125da6ab1396438be423eb382c4ed7dc718ea80a1836b66324f2
|
File details
Details for the file re_mocd-0.2.3-cp39-cp39-macosx_11_0_arm64.whl.
File metadata
- Download URL: re_mocd-0.2.3-cp39-cp39-macosx_11_0_arm64.whl
- Upload date:
- Size: 395.2 kB
- Tags: CPython 3.9, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e3ba12365139d0f7d68e9a9d7da4a6ff15c9aab714b2dda9c9f6199424a7768
|
|
| MD5 |
a05729eb3f2060bd45dbdfa9007b11a1
|
|
| BLAKE2b-256 |
8394629a0a75936b67249b11217357b98bbb52a2d92415402e3a8a37e6bd3aa7
|
File details
Details for the file re_mocd-0.2.3-cp38-cp38-win_amd64.whl.
File metadata
- Download URL: re_mocd-0.2.3-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 354.7 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28d07176588844c5cae458b8dfd7b952c8a217dc99d210b65598c00951702fc4
|
|
| MD5 |
846063fb4a22fae53a317a072a8b46f2
|
|
| BLAKE2b-256 |
a10a03bc0314e985fe7e748c0ca10dcbc66fadf72e78843c85170ed8d07f48f5
|
File details
Details for the file re_mocd-0.2.3-cp38-cp38-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: re_mocd-0.2.3-cp38-cp38-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 444.5 kB
- Tags: CPython 3.8, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d87caaf585fc8ba258e642e90b1c57927268336f9e7cd2d47b24e48fc2524061
|
|
| MD5 |
f26418a4d55da95fba96f3346adfda3e
|
|
| BLAKE2b-256 |
aff9e018d6ce63abc65079fb69f2b24021b845bcb5af7e95d91271a40ed3aad9
|
File details
Details for the file re_mocd-0.2.3-cp38-cp38-macosx_11_0_arm64.whl.
File metadata
- Download URL: re_mocd-0.2.3-cp38-cp38-macosx_11_0_arm64.whl
- Upload date:
- Size: 394.9 kB
- Tags: CPython 3.8, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
137cad9a5601e1c4c7fa56cf8bae3eebc002b67180b9e61eb593e88484336288
|
|
| MD5 |
5899bf96948b1e56c901e5fbdb936579
|
|
| BLAKE2b-256 |
161bcd166389f279e422506e0567a959c573fd42d8ada69dbecc3ba3de289436
|