python igraph社区的数量或大小

2024-05-28 23:26:08 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在使用pythonigraph包进行社区检测。目前,我正在使用community_multilevel

communities = ig.Graph.community_multilevel(g)

但是,检测到的社区太大,信息量较少。有没有办法指定社区的数量或限制社区的规模,使它们更小?我并不反对使用igraph中可用的其他社区检测算法。你知道吗

我知道这里有一个类似的问题:Python community module, restrict size of each community?,但一直没有人回答。感谢您的反馈。你知道吗


Tags: community算法数量社区graphmodule规模communities
1条回答
网友
1楼 · 发布于 2024-05-28 23:26:08

Is there a way to either specify the number of communities or restrict the size of the communities so they are smaller?

答案相当令人失望:不,没有;igraph中的社区检测算法都不允许您提前指定社区的数量或限制其大小。你知道吗

相关问题 更多 >

    热门问题