资源算法cdlib

cdlib

2020-01-15 | |  37 |   0 |   0

CDlib - Community Discovery Library

CDlib provides implementations of several community discovery algorithms. Moreover, it implements a wide set of partition evaluation measures as well as predefined visualization facilities.

CDlib is designed around the networkx python library: however, when needed, it takes care to authomatically 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.


上一篇:mxnet-for-cdl

下一篇:CdliUserProfile

用户评价
全部评价

热门资源

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...

  • Keras-ResNeXt

    Keras ResNeXt Implementation of ResNeXt models...

  • spark-corenlp

    This package wraps Stanford CoreNLP annotators ...

  • shih-styletransfer

    shih-styletransfer Code from Style Transfer ...

  • inferno-boilerplate

    This is a very basic boilerplate example for pe...