Cluster Stability

#> Loading required package: igraph
#> Attaching package: 'igraph'
#> The following objects are masked from 'package:stats':
#>     decompose, spectrum
#> The following object is masked from 'package:base':
#>     union

Here we perform a nonparametric bootstrap to the karate club graph and the same selection of algorithms. For each instance, the set of vertices is resampled, the induced graph is obtained by taking the new set of vertices with the induced edges from the original graph, and the clustering algorithms are applied. Then, these results are compared to the induced original clusterings using several metrics: the variation of information (VI), normalized reduced mutual information (NRMI) and both adjusted and regular Rand index (Rand and adRand):

data(karate, package="igraphdata")
boot_alg_list(g=karate, return_data=FALSE, R=99,
                            "label prop"= cluster_label_prop, 
#>              Louvain label prop  walktrap
#> VI         0.2997327  0.2673941 0.2772378
#> NRMI       0.6390081  0.5792359 0.6477054
#> Rand       0.8402204  0.7914979 0.8452079
#> AdRand     0.6064305  0.5800676 0.6341672
#> n_clusters 6.0404040  4.5050505 5.7373737