hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edwardy...@apache.org
Subject svn commit: r1557483 - /hama/trunk/ml/src/main/java/org/apache/hama/ml/semiclustering/SemiClusteringVertex.java
Date Sun, 12 Jan 2014 01:56:39 GMT
Author: edwardyoon
Date: Sun Jan 12 01:56:39 2014
New Revision: 1557483

URL: http://svn.apache.org/r1557483
Log: (empty)

Modified:
    hama/trunk/ml/src/main/java/org/apache/hama/ml/semiclustering/SemiClusteringVertex.java

Modified: hama/trunk/ml/src/main/java/org/apache/hama/ml/semiclustering/SemiClusteringVertex.java
URL: http://svn.apache.org/viewvc/hama/trunk/ml/src/main/java/org/apache/hama/ml/semiclustering/SemiClusteringVertex.java?rev=1557483&r1=1557482&r2=1557483&view=diff
==============================================================================
--- hama/trunk/ml/src/main/java/org/apache/hama/ml/semiclustering/SemiClusteringVertex.java
(original)
+++ hama/trunk/ml/src/main/java/org/apache/hama/ml/semiclustering/SemiClusteringVertex.java
Sun Jan 12 01:56:39 2014
@@ -173,10 +173,10 @@ public class SemiClusteringVertex extend
       for (Edge<Text, DoubleWritable> e : eL) {
         eC++;
         if (vertexId.contains(e.getDestinationVertexID().toString())
-            && e.getCost() != null) {
-          iC = iC + e.getCost().get();
-        } else if (e.getCost() != null) {
-          bC = bC + e.getCost().get();
+            && e.getValue() != null) {
+          iC = iC + e.getValue().get();
+        } else if (e.getValue() != null) {
+          bC = bC + e.getValue().get();
         }
       }
     }



Mime
View raw message