View source: R/scoring_functions_Rcpp.R
| FOMD | R Documentation |
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.
FOMD(g, com, edgelist = NULL)
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. |
Numeric vector with the FOMD of each community.
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()
data(karate, package="igraphdata")
FOMD(karate, membership(cluster_louvain(karate)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.