View source: R/scoring_functions_Rcpp.R
| average_odf | R Documentation | 
Computes the Average Out Degree Fraction (Average ODF) of a graph (which can be weighted) and its communities.
average_odf(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 vector with the Average ODF of each community.
Other cluster scoring functions: 
FOMD(),
average_degree(),
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_odf(karate, membership(cluster_louvain(karate)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.