View source: R/scoring_functions.R
triangle_participation_ratio_communities | R Documentation |
Computes the triangle participation ratio (proportion of vertices that belong to a triangle). The computation is done to the subgraphs induced by each of the communities in the given partition.
triangle_participation_ratio_communities(g, com)
g |
The input graph (as an igraph object). Edge weights and directions are ignored. |
com |
Community membership vector. Each element corresponds to a vertex of the graph, and contains the index of the community it belongs to. |
A vector containing the triangle participation ratio of each community.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.