Internal density of a graph's communities. That is, the sum of weights of their
edges divided by the number of unordered pairs of vertices (which is the number of potential edges).
Usage
internal_density(g, com)
Value
Numeric vector with the internal density 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.
com
community membership integer vector. Each element corresponds to a vertex.