Learn R Programming

clustAnalytics (version 0.5.5)

FOMD: FOMD (Fraction Over Median Degree)

Description

Given a weighted graph and a partition into communities, returns the fraction of nodes of each community whose internal degree (i.e. the degree accounting only intra-community edges) is greater than the median degree of the whole graph.

Usage

FOMD(g, com, edgelist = NULL)

Value

Numeric vector with the FOMD 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.

edgelist

alternatively, the edgelist of the graph, as a matrix where the first two columns to the vertices and the third is the weight of each edge.

See Also

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

Examples

Run this code
data(karate, package="igraphdata")
FOMD(karate, membership(cluster_louvain(karate)))

Run the code above in your browser using DataLab