Github user vasia commented on a diff in the pull request:
https://github.com/apache/flink/pull/537#discussion_r28643293
--- Diff: docs/gelly_guide.md ---
@@ -380,6 +380,16 @@ all aggregates globally once per superstep and makes
them available in the next
* <strong>Broadcast Variables</strong>: DataSets can be added as
[Broadcast Variables](programming_guide.html#broadcast-variables) to the
`VertexUpdateFunction` and `MessagingFunction`, using the
`addBroadcastSetForUpdateFunction()` and
`addBroadcastSetForMessagingFunction()` methods, respectively.
+* <strong>Number of Vertices</strong>: Accessing the total number of
vertices within the iteration. This property can be set using the
`setOptNumVertices()` method.
+
+The number of vertices can then be accessed in the vertex update function
and in the messaging function using the `getNumberOfVertices()` method.
+
+* <strong>Degrees</strong>: Accessing the in/out degree for a vertex
within an iteration. This property can be set using the `setOptDegrees()`
method.
+
--- End diff --
same
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---