|
From: | Edmund Hunt |
Subject: | Re: [igraph] leading.eigenvector.community function |
Date: | Thu, 25 May 2017 10:43:41 -0700 |
Hi Gabor, Thanks for your reply. Here are 4 different commands and their result, I guess I am just a bit confused how they relate to each other. The first two are using the cluster_leading_eigen alone, the second two use that command to find the communities and then the modularity function to get the modularity value out of it Would I be right in understanding that cluster_leading_eigen only uses the weights argument after the communities have been found - but then why does it return the same value below for the first two commands - and why is it different to the third command Thanks > cluster_leading_eigen(net, weights = E(net)$weight) IGRAPH clustering leading eigenvector, groups: 2, mod: 0.055 + groups: $`1` [1] "YV" "B" "P" $`2` [1] "DG" "V" > cluster_leading_eigen(net, weights = NULL) IGRAPH clustering leading eigenvector, groups: 2, mod: 0.055 + groups: $`1` [1] "YV" "B" "P" $`2` [1] "DG" "V" > modularity(net,membership(cluster_leading_eigen(net, weights = E(net)$weight)),weights=NULL) [1] 0.03061224 > modularity(net,membership(cluster_leading_eigen(net, weights = E(net)$weight)),weights=E(net)$weight) [1] 0.0546875
|
[Prev in Thread] | Current Thread | [Next in Thread] |