Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Triangle Density and Clustering Coefficient The triangle density of a graph is the ratio of number of triangles in the graph to the number of

Triangle Density and Clustering Coefficient The triangle density of a graph is the ratio of number of triangles in the graph to the number of possible triangles:
triangle density # of triangles /([ n; 3])
Triangle density is not an appropriate metric to measure clustering for several reasons. First, it does not take into account that the graph could have several connected components, in which case the denominator might be much larger than the numerator. Second, even in the case of a connected graph any three nodes need not be present in the same cluster (the shortest path lengths connecting them may be much larger). A better metric for clustering is the clustering coefficient, denoted C, which measures the ratio of triangles in the network to the number of connected triples:
C=# of closed triplets /# of closed and open triplets =3# of triangles /# of connected triples .
where an open triplet is three nodes connected by two edges, and a closed triplet is three nodes connected by three edges. This can be written in terms of the adjacency matrix as
C=_i, j, k A_i j A_j k A_k i/_i k_i(k_i-1)
where k_i=_j A_i j is the degree of node i. To understand this formula, first consider the numerator. Note that _i, j, k A_i j A_j k A_k i=_i[A^3]_i i=tr A^3, that is, the trace of A^3. We know that [A^3]_i i is equal to the number of walks of length 3 from node i to itself, which will be two if it is part of a closed triplet (there are two paths around the triplet) and zero otherwise. So the sum of the diagonal elements of A^3 is exactly twice the number of closed triplets (and six times the number of triangles, as each node in the triangle is counted once). As for the denominator, let us examine how the degree of a node informs the number of connected triplets. If a node has degree zero, then it can't be part of a triplet, and the same is true for degree one. For a node of degree two, it must be part of one triplet (which may be closed or open). For degree three, the node is part of three triplets. We conclude that for a node of degree k, the node is part of ([ k; 2])=k(k-1)/2 connected triplets. Therefore the total number of connected triplets is the sum of this formula for all nodes: _i k_i(k_i-1)/2. One can also define the same node-wise. For node i, the local clustering coefficient C_i is defined as
C_i =# of triangles at node i/# of connected triples centered at node i
=_j, k A_i j A_j k A_k i/k_i(k_i-1)
Clustering Coefficient of an Almost Complete Graph 0/1 punto (calificado) A complete graph is an undirected graph on n nodes such that every node is connected to every other node. Say you remove an edge from a complete graph on n nodes. What is the new clustering coefficient? Assume that n >=3.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Heikki Topi, Jeffrey A Hoffer, Ramesh Venkataraman

13th Edition

0134773659, 978-0134773650

More Books

Students also viewed these Databases questions