commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1234320 - in /commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph: coloring/GraphColoringBackTrackingTestCase.java coloring/GraphColoringTestCase.java utils/GraphUtils.java
Date Sat, 21 Jan 2012 12:56:24 GMT
Author: simonetripodi
Date: Sat Jan 21 12:56:23 2012
New Revision: 1234320

URL: http://svn.apache.org/viewvc?rev=1234320&view=rev
Log:
don't concatenate the strings to obtain the index as string label

Modified:
    commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/coloring/GraphColoringBackTrackingTestCase.java
    commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/coloring/GraphColoringTestCase.java
    commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/utils/GraphUtils.java

Modified: commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/coloring/GraphColoringBackTrackingTestCase.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/coloring/GraphColoringBackTrackingTestCase.java?rev=1234320&r1=1234319&r2=1234320&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/coloring/GraphColoringBackTrackingTestCase.java
(original)
+++ commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/coloring/GraphColoringBackTrackingTestCase.java
Sat Jan 21 12:56:23 2012
@@ -109,7 +109,7 @@ public class GraphColoringBackTrackingTe
             new UndirectedMutableGraph<BaseLabeledVertex, BaseLabeledEdge>();
         for ( int i = 0; i < 100; i++ )
         {
-            g1.addVertex( new BaseLabeledVertex( "" + i ) );
+            g1.addVertex( new BaseLabeledVertex( String.valueOf( i ) ) );
         }
 
         ColoredVertices<BaseLabeledVertex, Integer> coloredVertices =

Modified: commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/coloring/GraphColoringTestCase.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/coloring/GraphColoringTestCase.java?rev=1234320&r1=1234319&r2=1234320&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/coloring/GraphColoringTestCase.java
(original)
+++ commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/coloring/GraphColoringTestCase.java
Sat Jan 21 12:56:23 2012
@@ -95,7 +95,7 @@ public class GraphColoringTestCase exten
             new UndirectedMutableGraph<BaseLabeledVertex, BaseLabeledEdge>();
         for ( int i = 0; i < 100; i++ )
         {
-            g1.addVertex( new BaseLabeledVertex( "" + i ) );
+            g1.addVertex( new BaseLabeledVertex( String.valueOf( i ) ) );
         }
 
         ColoredVertices<BaseLabeledVertex, Integer> coloredVertices = greedyColoring(
g1, colors );

Modified: commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/utils/GraphUtils.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/utils/GraphUtils.java?rev=1234320&r1=1234319&r2=1234320&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/utils/GraphUtils.java
(original)
+++ commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/utils/GraphUtils.java
Sat Jan 21 12:56:23 2012
@@ -45,7 +45,7 @@ public class GraphUtils
         // building Graph
         for ( int i = 0; i < nVertices; i++ )
         {
-            BaseLabeledVertex v = new BaseLabeledVertex( "" + i );
+            BaseLabeledVertex v = new BaseLabeledVertex( String.valueOf( i ) );
             g.addVertex( v );
         }
 
@@ -79,7 +79,7 @@ public class GraphUtils
         // building Graph
         for ( int i = 0; i < nVertices; i++ )
         {
-            BaseLabeledVertex v = new BaseLabeledVertex( "" + i );
+            BaseLabeledVertex v = new BaseLabeledVertex( String.valueOf( i ) );
             g.addVertex( v );
         }
 
@@ -131,7 +131,7 @@ public class GraphUtils
 
         for ( int i = 0; i < nVertices; i++ )
         {
-            BaseLabeledVertex v = new BaseLabeledVertex( "" + i );
+            BaseLabeledVertex v = new BaseLabeledVertex( String.valueOf( i ) );
             g.addVertex( v );
             tmp.add( v );
         }



Mime
View raw message