View source: R/scoring_functions_Rcpp.R View source: R/scoring_functions.R
expansion | R Documentation |
Given a graph (possibly weighted) split into communities, the expansion of a community is the sum of all edge weights connecting it to the rest of the graph divided by the number of vertices in the community
expansion(g, com)
g |
Graph to be analyzed (as an |
com |
community membership integer vector. Each element corresponds to a vertex. |
Numeric vector with the expansion of each community.
Other cluster scoring functions:
FOMD()
,
average_degree()
,
average_odf()
,
conductance()
,
coverage()
,
cut_ratio()
,
density_ratio()
,
edges_inside()
,
internal_density()
,
max_odf()
,
normalized_cut()
,
scoring_functions()
,
weighted_clustering_coefficient()
,
weighted_transitivity()
data(karate, package="igraphdata")
expansion(karate, membership(cluster_louvain(karate)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.