max_odf {clustAnalytics}R Documentation

Max Out Degree Fraction

Description

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

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

Usage

max_odf(g, com)

max_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 Max ODF of each community.

Numeric vector with the Max ODF of each community.

See Also

Other cluster scoring functions: FOMD(), average_degree(), average_odf(), conductance(), coverage(), cut_ratio(), density_ratio(), edges_inside(), expansion(), internal_density(), normalized_cut(), scoring_functions(), weighted_clustering_coefficient(), weighted_transitivity()

Other cluster scoring functions: FOMD(), average_degree(), average_odf(), conductance(), coverage(), cut_ratio(), density_ratio(), edges_inside(), expansion(), internal_density(), normalized_cut(), scoring_functions(), weighted_clustering_coefficient(), weighted_transitivity()

Examples

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

[Package clustAnalytics version 0.5.5 Index]