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

    https://github.com/apache/flink/pull/537#discussion_r27256701
  
    --- Diff: 
flink-staging/flink-gelly/src/main/java/org/apache/flink/graph/library/LabelPropagation.java
 ---
    @@ -68,12 +70,12 @@ public LabelPropagation(int maxIterations) {
        public static final class UpdateVertexLabel<K extends Comparable<K> & 
Serializable>
                        extends VertexUpdateFunction<K, Long, Long> {
     
    -           public void updateVertex(K vertexKey, Long vertexValue,
    +           public void updateVertex(Vertex<K, Tuple3<Long,Long,Long>> 
vertex,
                                MessageIterator<Long> inMessages) {
                        Map<Long, Long> labelsWithFrequencies = new 
HashMap<Long, Long>();
     
                        long maxFrequency = 1;
    -                   long mostFrequentLabel = vertexValue;
    +                   long mostFrequentLabel = vertex.getValue().f0;
    --- End diff --
    
    `vertex.getValue()` should return the vertex value, not a Tuple3 from the 
user has to extract the vertex value :S


---
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