powered by
Average degree (weighted degree, if the graph is weighted) of a graph's communities.
average_degree(g, com)
Numeric vector with the average degree of each community.
Graph to be analyzed (as an igraph object). If the edges have a "weight" attribute, those will be used as weights.
igraph
community membership integer vector. Each element corresponds to a vertex.
Other cluster scoring functions: FOMD(), average_odf(), conductance(), coverage(), cut_ratio(), density_ratio(), edges_inside(), expansion(), internal_density(), max_odf(), normalized_cut(), scoring_functions(), weighted_clustering_coefficient(), weighted_transitivity()
FOMD()
average_odf()
conductance()
coverage()
cut_ratio()
density_ratio()
edges_inside()
expansion()
internal_density()
max_odf()
normalized_cut()
scoring_functions()
weighted_clustering_coefficient()
weighted_transitivity()
data(karate, package="igraphdata") average_degree(karate, membership(cluster_louvain(karate)))
Run the code above in your browser using DataLab