Github user fhueske commented on a diff in the pull request:

    https://github.com/apache/flink/pull/547#discussion_r27955651
  
    --- Diff: 
flink-staging/flink-gelly/src/main/java/org/apache/flink/graph/Graph.java ---
    @@ -1118,30 +1119,52 @@ public boolean filter(Edge<K, EV> edge) {
        }
     
        /**
    -    * Create a Vertex-Centric iteration on the graph.
    -    * 
    +    * Runs a Vertex-Centric iteration on the graph.
    +    * No configuration options are provided.
    +
         * @param vertexUpdateFunction the vertex update function
         * @param messagingFunction the messaging function
         * @param maximumNumberOfIterations maximum number of iterations to 
perform
    -    * @return
    +    * 
    +    * @return the updated Graph after the vertex-centric iteration has 
converged or
    +    * after maximumNumberOfIterations.
         */
    -   public <M> VertexCentricIteration<K, VV, M, EV> 
createVertexCentricIteration(
    +   public <M> Graph<K, VV, EV> runVertexCentricIteration(
                        VertexUpdateFunction<K, VV, M> vertexUpdateFunction,
                        MessagingFunction<K, VV, M, EV> messagingFunction,
                        int maximumNumberOfIterations) {
    -           return VertexCentricIteration.withEdges(edges, 
vertexUpdateFunction,
    -                           messagingFunction, maximumNumberOfIterations);
    +
    --- End diff --
    
    Function call could be forwarded to the configured 
`runVertexCentricIteration` to reduce code duplication.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to