Docsity

Community Detection - Network Theory - Lecture Slides, Slides of Network Theory

Partial preview of the text

Download Community Detection - Network Theory - Lecture Slides and more Slides Network Theory in PDF only on Docsity!

Network Theory:

Community Detection

A community is a subset of nodes in the network that form a cohesive group.

In order to discover how to detect communities in a network it is essential that to understand what a vertex cut set is, which is set of vertices whose removal disconnects the network; thereby laying the foundational step in detecting communities.

Let us consider the following network:

{C} is the minimum vertex cut set in accordance with the above network.

Three community detection algorithms are explained the following slides:

  1. A global algorithm (Kernighan and Lin, 1970)
  2. Spectral Partitioning
  3. Girvan - Newman Algorithm

Community Definition

Example 1:

Example 2:

If A and E are swapped,

  • A adds three to cut set
  • E adds one to cut set Therefore, this is a bad swap

SPECTRAL POSITIONING

Consider a graph, G(|n|, |m|) Divide G into groups 1 & 2

R = Number of edges between groups 1 & 2 = ½∑Aij (I & j belong to different groups) S = +1 if i ∈ group 1 -1 if i ∈ group 2

Kronecker Delta, ∂ij = ½ (1 – SiSj) = 1 if I & j ∈ different groups ø if I & j ∈ same group R = ¼ R = ¼ ∑ (Kij ∂ij - Aij). SiSj Where (Kij ∂ij - Aij) is the ijth laplacian matrix = Lij Ki = = degree of I R = ¼ ST^ L S (where S is the vector with elements Si)

In general, given A, D = diagonal matrix (degree of nodes along the diagonal) Laplacian, L = D - A

( 1 ) , i j ijAij^  SS

j Aij

Girvan and Newman Algorithm

1. Compute betweenness for all existing edges in the

network

2. Remove the edge with the highest betweenness

3. Recompute all edge betweenness values

4. Repeat steps 2 & 3 until no edges remain

-- The remaining connected components are the

communities

Example

i.e.. The role is used for grouping.
Step 1: Find structurally equivalent nodes.

Positional Roles Analysis (2/4)

Positional Roles Analysis (3/4)

• Step 2: Search for nodes that can be assigned

to positions in groups from step 1.

• In an adjacency matrix, position (i.e., groups)

can be seen as blocks.

Other equivalence groupings…

An alternative sets of node equivalence ( White Retiz, 1983) This is non. proximity based.

Local Community Detection (1/4)

Community Detection Cont’d – Local ( clauset, 2005) Consider a graph G, with C G about which we know all connections neighbors of C is U.

Local Community Detection (3/4)

Next, we define boundary of C being B.

I = Interior T = Terminal

Local Community Detection (4/4)

A Greedy Algorithm

1. Add v0 to C
2. Add all neighbors of v0 to U
3. Set B= v
4. While | C | < K do
5. For each vj ∈ U do
6. Compute
7. End for
8. Find Vj such that is maximum
9. Add that Vj to C
10. Add all new neighbors of that Vj to U
11. Update R and B
12. End while