View source: R/scoring_functions.R
coverage | R Documentation |
Computes the coverage (fraction of internal edges with respect to the total number of edges) of a graph and its communities
coverage(g, com)
g |
Graph to be analyzed (as an |
com |
Community membership integer vector. Each element corresponds to a vertex of the graph, and contains the index of the community it belongs to. |
Numeric value of the coverage of g
and com
.
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()
data(karate, package="igraphdata")
coverage(karate, membership(cluster_louvain(karate)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.