powered by
Given a graph and a list of clustering algorithms, computes several scoring functions on the clusters found by each of the algorithms.
evaluate_significance( g, alg_list = list(Louvain = cluster_louvain, `label prop` = cluster_label_prop, walktrap = cluster_walktrap), no_clustering_coef = FALSE, gt_clustering = NULL, w_max = NULL )
A data frame with the values of scoring functions (see scoring_functions) of the clusters obtained by applying the clustering algorithms to the graph.
scoring_functions
Graph to be analyzed (as an igraph object)
igraph
List of clustering algorithms, which take an igraph graph as input and return an object of the communities class.
communities
Logical. If TRUE, skips the computation of the clustering coefficient, which is the most computationally costly of the scoring functions.
TRUE
Vector of integers that correspond to labels of the ground truth clustering. The scoring functions will be evaluated on it.
Numeric. Upper bound for edge weights. Should be generally left as default (NULL).
NULL
data(karate, package="igraphdata") evaluate_significance(karate)
Run the code above in your browser using DataLab