apache/spark — pull request #1217 by jegonzal (2014-06-25 22:27:35+00:00)
Title: Introducing an Improved Pregel API

The initial Pregel API coupled voting to halt with message reception. In this revised the vertex program receives a `PregelContext` which enables the user to signal whether or not to halt as well as access the current iteration number.