社区发现算法python视频_ASLPAw-python中的自适应重叠社区发现算法包。-sosei Installation Usage...

作者:sosei

### 作者邮箱:fss.sosei@gmail.com

### 首页:https://github.com/fsssosei/ASLPAw

### 文档:None

### 下载链接

# ASLPAw

up-3650cf31e19e94f58c052632fbd70d9e.jpg

up-c625195f529737129c1f6f2d664dd8ba.jpg

up-1dc6cd77c2b34410e8e0d7d5017b33de.jpgup-86d7b2db906996b0830de9139e3445c8.jpgup-c9e980950887cd6ae959079073c7dba9.jpgup-6afac528f63cb4bacf82d084abc6d4b1.jpgup-3c222c09bb8421cf2d627f5f0213459c.jpgup-d61004337ce3466b3d841d0f7767fd72.jpg

up-cec7eee5fca1563b9375061bcc85a9ed.jpg

up-6b56d9a4d79abcfc1d0de1411750fdb1.jpg

up-e90da549a005674daa7d68e9f85ddff2.jpg

Adaptive overlapping community discovery algorithm package in python.

ASLPAw can be used for disjoint and overlapping community detection and works on weighted/unweighted and directed/undirected networks. ASLPAw is adaptive with virtually no configuration parameters.

This is an easy-to-understand reference implementation that is not optimized for efficiency, but is robust. The underlying NetworkX package is inherently inefficient and unsuitable for use on large networks. The next release will extend support for multiple productivity packages, such as SNAP, graph-tool, and igraph.

Installation

Installation can be done through pip. You must have python version >= 3.7

pip install ASLPAw

Usage

The statement to import the package:

from ASLPAw_package import ASLPAw

Example:

>>> from networkx.generators.community import relaxed_caveman_graph

>>> #Set seed to make the results repeatable.

>>> data_graph = relaxed_caveman_graph(3, 6, 0.22, seed = 65535)

>>> ASLPAw(data_graph, seed=65535).adj

AdjacencyView({0: {1: {'weight': 30}}, 1: {6: {'weight': 15}, 1: {'weight': 14}}, 6: {6: {'weight': 31}}, 2: {1: {'weight': 30}}, 3: {1: {'weight': 29}}, 4: {1: {'weight': 30}}, 5: {1: {'weight': 30}}, 7: {6: {'weight': 30}}, 8: {6: {'weight': 29}}, 9: {6: {'weight': 29}}, 10: {6: {'weight': 25}}, 11: {6: {'weight': 28}}, 12: {15: {'weight': 19}}, 15: {15: {'weight': 24}}, 13: {15: {'weight': 22}}, 14: {15: {'weight': 22}}, 16: {15: {'weight': 19}}, 17: {15: {'weight': 19}}})

>>> data_graph = relaxed_caveman_graph(3, 6, 0.39, seed = 65535)

>>> ASLPAw(data_graph, seed=65535).adj

AdjacencyView({0: {3: {'weight': 25}}, 3: {3: {'weight': 27}}, 1: {3: {'weight': 26}}, 2: {3: {'weight': 28}}, 4: {3: {'weight': 29}}, 5: {3: {'weight': 29}}, 6: {6: {'weight': 30}}, 7: {6: {'weight': 30}}, 8: {6: {'weight': 21}}, 9: {6: {'weight': 27}}, 10: {3: {'weight': 20}}, 11: {6: {'weight': 27}}, 12: {15: {'weight': 16}, 6: {'weight': 13}}, 15: {}, 13: {6: {'weight': 19}}, 14: {6: {'weight': 20}}, 16: {15: {'weight': 17}, 6: {'weight': 12}}, 17: {15: {'weight': 18}, 6: {'weight': 12}}})

Copy from pypi.org

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值