Pregel: Graph Processing
6 min read.
Run graph jobs in supersteps: vertices read messages, update, send to neighbours, wait at a barrier, and vote to halt. Spread a value, find shortest paths and connected components.
Think of it this way: Imagine a rumour passed along a chain of friends where everyone may only phone their friends once per round. Each round, whoever heard something new calls their friends. Nobody calls out of turn, and the game ends when a whole round passes with no calls.
Each vertex holds a number. The job: every vertex learns the biggest number in the graph. A vertex only talks to its neighbours.
Check your understanding
Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.
Run one superstep
Order what happens in one Pregel superstep, from the start of the round to the next one.
Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.
- 1Drop a step here
- 2Drop a step here
- 3Drop a step here
- 4Drop a step here
- 5Drop a step here
- 6Drop a step here
Quiz
8 questionsWhat does a vertex do in a superstep?
Done with this lesson?
Sign in free to keep your progress, streak and quiz scores.