average_odf {clustAnalytics}R Documentation

Average Out Degree Fraction

Description

Computes the Average Out Degree Fraction (Average ODF) of a graph (which can be weighted) and its communities.

Usage

average_odf(g, com)

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.

Value

Numeric vector with the Average ODF of each community.

See Also

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()

Examples

data(karate, package="igraphdata")
average_odf(karate, membership(cluster_louvain(karate)))

[Package clustAnalytics version 0.5.5 Index]