community-detection-0.0.9
توضیحات
A community detection package
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | community-detection-0.0.9 |
| نام | community-detection |
| نسخه کتابخانه | 0.0.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jiaying Wang |
| ایمیل نویسنده | jiaying@sjzu.edu.cn |
| آدرس صفحه اصلی | https://github.com/jiayingwang/community_detection |
| آدرس اینترنتی | https://pypi.org/project/community-detection/ |
| مجوز | - |
# Introduction
The community-detection module contains basic functions for find communities in a graph. Internally, community-detection uses [simple-graph](https://github.com/jiayingwang/simple_graph) to hold the structure of a graph.
# Install
```python
pip install community-detection
```
or update
```python
pip install --upgrade community-detection
```
# Usage
```python
from simple_graph import Graph
from community_detection import FastUnfolding
G = Graph({0: [1, 2], 1: [2]})
fu = FastUnfolding()
communities = fu.process(G)
Q = fu.modularity(G, communities)
print(communities)
print('Q:', Q)
```
```shell
ouput:
[[0, 1, 2]]
Q: 0.0
```
# License
community-detection is a free software. See the file LICENSE for the full text.
# Authors

نیازمندی
| مقدار | نام |
|---|---|
| - | elegant-io |
| - | simple-graph |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl community-detection-0.0.9:
pip install community-detection-0.0.9.whl
نصب پکیج tar.gz community-detection-0.0.9:
pip install community-detection-0.0.9.tar.gz