imbajin commented on code in PR #108:
URL: 
https://github.com/apache/incubator-hugegraph-computer/pull/108#discussion_r1029429132


##########
computer-algorithm/src/main/java/com/baidu/hugegraph/computer/algorithm/community/cc/ClusteringCoefficientOutput.java:
##########
@@ -48,7 +48,7 @@ protected org.apache.hugegraph.structure.graph.Vertex 
constructHugeVertex(Vertex
         org.apache.hugegraph.structure.graph.Vertex hugeVertex =
                 new org.apache.hugegraph.structure.graph.Vertex(null);
         hugeVertex.id(vertex.id().asObject());
-        float triangle = ((ClusteringCoefficientValue) vertex.value()).count();
+        long triangle = ((ClusteringCoefficientValue) vertex.value()).count();
         int degree = ((ClusteringCoefficientValue) 
vertex.value()).idList().size();
         hugeVertex.property(this.name(), 2 * triangle / degree / (degree - 1));

Review Comment:
   yep



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to