I am finding it hard to understand what membership and modularity returns and why is it exactly used.
wc <- walktrap.community(karate)
modularity(wc)
membership(wc)
plot(wc, karate)
for the above code I get the following when I execute 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
for the above code I get the following when I execute modularity
:
[1] 0.3532216
I read the documentation but still a bit confusing.