Evaluating Communities Problem Solution-Mohammed Abdullah.pdf

MohammedAbdullah854371 16 views 71 slides Jun 07, 2024
Slide 1
Slide 1 of 71
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39
Slide 40
40
Slide 41
41
Slide 42
42
Slide 43
43
Slide 44
44
Slide 45
45
Slide 46
46
Slide 47
47
Slide 48
48
Slide 49
49
Slide 50
50
Slide 51
51
Slide 52
52
Slide 53
53
Slide 54
54
Slide 55
55
Slide 56
56
Slide 57
57
Slide 58
58
Slide 59
59
Slide 60
60
Slide 61
61
Slide 62
62
Slide 63
63
Slide 64
64
Slide 65
65
Slide 66
66
Slide 67
67
Slide 68
68
Slide 69
69
Slide 70
70
Slide 71
71

About This Presentation

This document provides a comprehensive guide to solving the Girvan–Newman algorithm step by step, a prominent method for detecting communities within networks. It starts with a detailed explanation of how to implement the algorithm, focusing on the step-by-step process of calculating and recalcula...


Slide Content

Evaluating Communities
Mohammed Abdullah



1

Extended definition
The Girvan–Newman algorithm:
Hierarchical method used to detect communities
2

Extended definition
"edge betweenness" of an edge:
The number of shortest paths between pairs of nodes that run
along it.
3

Modularity
4

Modularity
5
m is the total number of edges of the network

Modularity
6
m is the total number of edges of the network
A is the adjacency matrix

Modularity
7
m is the total number of edges of the network
A is the adjacency matrix
function yields 1 if vertices i and j
are in the same community, 0
otherwise.

Modularity
8
m is the total number of edges of the network
A is the adjacency matrix
function yields 1 if vertices i and j
are in the same community, 0
otherwise.
ki is the degree of vertex i

Modularity
9

Modularity
10
Total number of edges joining vertices of
community s
sum of the degrees of the vertices of s

Modularity
11
Total number of edges joining vertices of
community s
sum of the degrees of the vertices of s
number of communities,

Modularity
12
Fraction of edges of the network inside the
community
Expected fraction of edges that would be there
if the network were a random network with the
same degree for each vertex. T

Algorithm
13
The algorithm's steps for community detection:

1.The betweenness of all existing edges in the
network is calculated first.

Algorithm
14
The algorithm's steps for community detection:

1.The betweenness of all existing edges in the
network is calculated first.
2.The edge(s) with the highest betweenness are
removed.

Algorithm
15
The algorithm's steps for community detection:

1.The betweenness of all existing edges in the
network is calculated first.
2.The edge(s) with the highest betweenness are
removed.
3.The betweenness of all edges affected by the
removal is recalculated.

Algorithm
16
The algorithm's steps for community detection:

1.The betweenness of all existing edges in the
network is calculated first.
2.The edge(s) with the highest betweenness are
removed.
3.The betweenness of all edges affected by the
removal is recalculated.

4.Steps 2 and 3 are repeated until no edges
remain.

Problem
17

Problem
18
Shortest path — Breadth First Search (BFS)

Shortest path — Breadth First Search (BFS)
19

Options
20

Options
21

BFS Traversal
22

Neighbours of A
23

Neighbours of C
24

Neighbours of C
25

Neighbours of B
26

Level Order Traversal
27

No of Inputs to each node (Indegree)
28

No of Inputs to each node (Indegree)
29

Divide the weights
30

Divide the weights
31

Divide the weights
32

Divide the weights
33

Update Table
34

Node B
35

Update Table
36

Update Table
37

Update Table
38

Node E
39

Update Table
40

Node D
41

Update Table
42

Node C
43

Update Table
44

Edge Betweenness Value (1st iter)
45

Highest
46

Remove Highest
47

Remove Highest
48

Iter 2
49

Graph for Iter 2
50

Graph for Iter 2
51

Node A
52

Update Table
53

Node B
54

Update Table
55

Node E
56

Update Table
57

Node D
58

Update Table
59

Node C
60

Update Table
61

Edge Betweenness Value (2st iter)
62

Remove Highest
63

Remove Highest
64

Remove Highest
65

Remove Highest
66

Stop Algorithm
67

Partitioned Communities
68

Modularity
69

Scenario - Symmetry
70

Scenario- Communities Formed
71