Computes the Average Out Degree Fraction (Average ODF) of a graph (which can be weighted)
and its communities.
Usage
average_odf(g, com)
Value
Numeric vector with the Average ODF of each community.
Arguments
g
Graph to be analyzed (as an igraph object). If the edges have a "weight" attribute, those will be used as weights (otherwise, all edges are assumed to be 1).
com
Community membership integer vector. Each element corresponds to a vertex
of the graph, and contains the index of the community it belongs to.