Local Clustering Coefficient

From SONIVIS:Wiki

Jump to: navigation, search
Local Clustering Coefficient

This metric is implemented in v0.9.


This metric is calculated with R.


The Local Clustering Coefficient calculates the probability that adjacent nodes of a single node are connected.

Objective

With the measure Local Clustering Coefficient we calculate the probability of neighbors (adjacent nodes) of a node to be neighbors to each other as well. If node A is connected to node B, and node B is connected to node C, then there is a heightened probability that node A is also connected to node C. It is also called transitivity.

The Local Clustering Coefficient can also show the replaceability of a node. If neighbors of a single node are neighbors to each other as well, these neighbors do not depend on this single node for their connection. Therefore the intermediate node is completely needless for the connection between these two neighbors.

In comparison the Network Local Clustering Coefficient measures the Local Clustering Coefficient for the whole network.

Calculation

Simple example for calculating the Local Clustering Coefficient for node 1 (Please click to enlarge)


The Local Clustering Coefficient is calculated by the fraction of permitted edges between the neighbors of a single node to them that actually exist for these neighbors[1]. If a node is connected to an unordered pair of other nodes (neighbors) these three build a triple. The number of triples indicates the number of permitted edges between the neighbors of a node. If two neighbors of a node are also connected by an edge then these three nodes build a triangle. Counting the number of triangles reveals the number of edges that actually exist for the neighbors of a certain node.

C_i = \frac{\text{number of triangles connected to node i}}{\text{number of triples centered on node i}} [1] = \frac{2|\{e_{jk}\}|}{k_i(k_i-1)} : n_j,n_k \in N_i, e_{jk} \in E.

A network G=(V,E)\,\! consists of a set of nodes (vertices) V\,\! and a set of edges E\,\! between them. A node n_i \,\! has k_i \,\! neighbors defined in the neighborhood N. For neighbors of n_i \,\! exist at most \frac{k_i(k_i -1)}{2} \,\! edges in an undirected network (this occurs when every neighbor of n_i \,\! is connected to every other neighbor of n_i \,\!). The edge e_{jk} \in E\,\! is an edge between the neighbors n_j \in N_i\,\! and n_k \in N_i\,\! of node n_i\,\!.

The result of this calculation is a number between 0 and 1, with 1 meaning all neighbors of ni are neighbors of each other as well.

In SONIVIS directed networks are considered as undirected ones as well, therefore the calculation for directed and undirected networks is the same. Furthermore, in SONIVIS we consider only unweighted networks for the calculation of the Local Clustering Coefficient. A calculation with weighted networks was proposed by Barrat et al. (2004)[1].

Statement

R-example (igraph)
library(igraph)
g <- random.graph.game(10, 3/10)
transitivity(g, type="local")

Reference

Additional Readings

Personal tools