| FOMD {clustAnalytics} | R Documentation |
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)
Arguments
g |
Graph to be analyzed (as an |
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. |
Value
Numeric vector with the FOMD of each community.
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
data(karate, package="igraphdata")
FOMD(karate, membership(cluster_louvain(karate)))