Evaluating Communities Problem Solution-Mohammed Abdullah.pdf
MohammedAbdullah854371
16 views
71 slides
Jun 07, 2024
Slide 1 of 71
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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...
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 recalculating betweenness centrality, identifying and removing edges, and progressively dividing the network into distinct communities.
To aid in understanding, the document includes a section on evaluating communities, discussing various methods and metrics used to assess the quality of the detected communities, with a particular emphasis on modularity.
Additionally, the document features several examples that illustrate the application of the Girvan–Newman algorithm on different types of networks. These examples provide practical insights into each step of the process, helping readers grasp the nuances of the algorithm and its effectiveness in uncovering community structures.
By the end of this document, readers will have a thorough understanding of the Girvan–Newman algorithm, from its theoretical foundations to practical implementation, including community evaluation techniques and illustrative examples.
Size: 1006.68 KB
Language: en
Added: Jun 07, 2024
Slides: 71 pages
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)