我发现很难理解成员资格和模块化的回报以及为什么要准确使用它。
wc <- walktrap.community(karate)
modularity(wc)
membership(wc)
plot(wc, karate)
对于上面的代码,我在执行时得到以下信息membership
:
[1] 1 1 2 1 5 5 5 1 2 2 5 1 1 2 3 3 5 1 3 1 3 1 3 4 4 4 3 4 2 3 2 2 3
对于上面的代码,我在执行时得到以下信息modularity
:
[1] 0.3532216
我阅读了文档,但仍然有点困惑。