commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1142289 - /commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/UndirectedMutableGraph.java
Date Sat, 02 Jul 2011 20:00:10 GMT
Author: simonetripodi
Date: Sat Jul  2 20:00:10 2011
New Revision: 1142289

URL: http://svn.apache.org/viewvc?rev=1142289&view=rev
Log:
[SANDBOX-337] Wrong value for Vertex degree

Modified:
    commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/UndirectedMutableGraph.java

Modified: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/UndirectedMutableGraph.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/UndirectedMutableGraph.java?rev=1142289&r1=1142288&r2=1142289&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/UndirectedMutableGraph.java
(original)
+++ commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/UndirectedMutableGraph.java
Sat Jul  2 20:00:10 2011
@@ -39,7 +39,7 @@ public class UndirectedMutableGraph<V ex
      */
     public final int getDegree( V v )
     {
-        return getAdjacencyList().get( v ).size() * 2;
+        return getAdjacencyList().get( v ).size();
     }
 
     /**



Mime
View raw message