triangle_participation_ratio_communities {clustAnalytics}R Documentation

Triangle Participation Ratio (community-wise)

Description

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.

Usage

triangle_participation_ratio_communities(g, com)

Arguments

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.

Value

A vector containing the triangle participation ratio of each community.


[Package clustAnalytics version 0.5.5 Index]