powered by
Computes the coverage (fraction of internal edges with respect to the total number of edges) of a graph and its communities
coverage(g, com)
Numeric value of the coverage of g and com.
g
com
Graph to be analyzed (as an igraph object).
igraph
Community membership integer vector. Each element corresponds to a vertex of the graph, and contains the index of the community it belongs to.
Other cluster scoring functions: FOMD(), average_degree(), average_odf(), conductance(), cut_ratio(), density_ratio(), edges_inside(), expansion(), internal_density(), max_odf(), normalized_cut(), scoring_functions(), weighted_clustering_coefficient(), weighted_transitivity()
FOMD()
average_degree()
average_odf()
conductance()
cut_ratio()
density_ratio()
edges_inside()
expansion()
internal_density()
max_odf()
normalized_cut()
scoring_functions()
weighted_clustering_coefficient()
weighted_transitivity()
data(karate, package="igraphdata") coverage(karate, membership(cluster_louvain(karate)))
Run the code above in your browser using DataLab