Graph Processing
Marco Serafini
COMPSCI 532 Lecture 9
Graph Processing Marco Serafini COMPSCI 532 Lecture 9 Graph - - PowerPoint PPT Presentation
Graph Processing Marco Serafini COMPSCI 532 Lecture 9 Graph Analytics Marco Serafini 2 2 Scaling Graph Algorithms Type of algorithms PageRank Shortest path Clustering Connected component Requirements Support
COMPSCI 532 Lecture 9
22
33
5
5
66
7
7
88
99
10
10
11
11
12
vertex code: Receive distances from neighbors, extract minimum If minimum is smaller than current distance Replace current distance with minimum For each edge Send current distance + edge weight Halt
13
∞ ∞ 2 2 ∞ 1 4 Superstep 0 message values = 2 and 4 ∞ 2 4 Superstep 1 message values = 4, 3, and 8 4 2 3 Superstep 2 message values = 6 and 7 4 2 3 Superstep 3 Complete, no new messages
vertex code: Receive distances from neighbors, extract minimum If minimum is smaller than current distance Replace current distance with minimum For each edge Send current distance + edge weight Halt
14
1 2 3 importance: i2 importance: i3 a12 * i2 sum inputs a13 * i3 new state to neighbors superstep i superstep i+1 … … superstep i+2 a12 a13 … … … i1 i2 i3 * = a12 * i2 + a13 * i3 … … links to v1 importance new importance adjacency matrix (transposed)
15
15
16
16
17
17
18
18
19
19
20
20
21
22
23
23
Machine(1( Machine(2( Accumulator( (Par4al(Sum)( Updated(( Vertex(Data( Gather( Mirror( Sca>er( Gather( Apply( Sca>er( (1)(Gather( (3)(Apply( (5)(Sca>er( (2)( (4)(
24
25 25
26
26
27
27
28
28
29
29
30
30
31
31