Community Discovery Library
Project description
CDlib - Community Discovery Library
CDlib is a meta-library for community discovery in complex networks: it implements algorithms, clustering fitness functions as well as visualization facilities.
CDlib is designed around the networkx python library: however, when needed, it takes care to automatically convert (from and to) igraph object so to provide an abstraction on specific algorithm implementations to the final user.
CDlib provides a standardized input/output facilities for several Community Discovery algorithms: whenever possible, to guarantee literature coherent results, implementations of CD algorithms are inherited from their original projects (see for instance Infomap,
Louvain, Leiden).
The original projects embedded in CDlib are acknowledged on the documentation website:
here the complete list of the CD methods included in the library.
Check out the official tutorial to get started!
If you use CDlib as support to your research consider citing:
G. Rossetti, L. Milli, R. Cazabet. CDlib: a Python Library to Extract, Compare and Evaluate Communities from Complex Networks. Applied Network Science Journal. 2019. DOI:10.1007/s41109-019-0165-9
Installation
CDlib requires python>=3.6.
To install the latest version of our library just download (or clone) the current project, open a terminal and run the following commands:
pip install -r requirements.txt
pip install -r requirements_optional.txt # (Optional) this might not work in Windows systems due to C-based dependencies.
pip install .
Alternatively use pip:
pip install cdlib
Optional Dependencies
CDlib relies on a few packages calling C code (namely: python-igraph, leidenalg, angel_cd and infomap).
The default installation will not set up such requirements since their configuration under non *nix systems is not trivial and cannot be easily automated.
Such a choice has been made to allow (even) Windows user to install the library and get access to its core functionalities.
To made available (most of) the optional packages you can either:
- (Windows) manually install the optional packages (versions details are specified in
requirements_optional.txt) following the original projects guidelines, or - (Linux/OSX) run the command:
pip install cdlib[C]
Such caveat will install everything that can be easily automated under Linux/OSX.
(Advanced) Graph-tool
The only optional dependency that will remain unsatisfied following the previous procedures will be graph-tool (used to add SBM models).
If you need it up and running, refer to the official documentation.
Collaborate with us!
CDlib is an active project, any contribution is welcome!
If you like to include your model in CDlib feel free to fork the project, open an issue and contact us.
How to contribute to this project?
Contributing is good, doing it correctly is better! Check out our rules, issue a proper pull request /bug report / feature request.
We are a welcoming community... just follow the Code of Conduct.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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 cdlib-0.1.9.tar.gz.
File metadata
- Download URL: cdlib-0.1.9.tar.gz
- Upload date:
- Size: 111.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4eceb2b2bcf1eeae2fb6d53dcc7d750a950902e9043a5a2cb95a60d861b3728f
|
|
| MD5 |
a6373b9a04372f4371c2dcf9a526d2b1
|
|
| BLAKE2b-256 |
d807bdb0b4d71b9d7cbf71bc69f4f4d90871864ca8188db7226bb3c227a90fbf
|
File details
Details for the file cdlib-0.1.9-py3-none-any.whl.
File metadata
- Download URL: cdlib-0.1.9-py3-none-any.whl
- Upload date:
- Size: 131.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd6c7f88fea3ff2f992b04c52e731beabbfd6fd0c0fc9ffeecab9f9a9b8c9c8c
|
|
| MD5 |
1a32201e4f7590e319b25753c5a96f13
|
|
| BLAKE2b-256 |
e44b0e77647e2a4552e6479ea151b3f6ce6d44d5c3434afae2ae56bc00c8a765
|