commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1141499 - /commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/coloring/GraphColoringTestCase.java
Date Thu, 30 Jun 2011 12:09:26 GMT
Author: simonetripodi
Date: Thu Jun 30 12:09:25 2011
New Revision: 1141499

URL: http://svn.apache.org/viewvc?rev=1141499&view=rev
Log:
optimized imports

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

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=1141499&r1=1141498&r2=1141499&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
Thu Jun 30 12:09:25 2011
@@ -22,6 +22,7 @@ package org.apache.commons.graph.colorin
 import static org.apache.commons.graph.coloring.GraphColoring.coloring;
 import static org.apache.commons.graph.utils.GraphUtils.buildBipartedGraph;
 import static org.apache.commons.graph.utils.GraphUtils.buildCompleteGraph;
+import static org.apache.commons.graph.utils.GraphUtils.buildSudokuGraph;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
 
@@ -31,7 +32,6 @@ import org.apache.commons.graph.VertexPa
 import org.apache.commons.graph.model.BaseLabeledEdge;
 import org.apache.commons.graph.model.BaseLabeledVertex;
 import org.apache.commons.graph.model.UndirectedMutableGraph;
-import org.apache.commons.graph.utils.GraphUtils;
 import org.junit.Test;
 
 /**
@@ -147,7 +147,7 @@ public class GraphColoringTestCase
     public void testSudoku()
         throws Exception
     {
-        UndirectedMutableGraph<Vertex, Edge> g1 = GraphUtils.buildSudokuGraph();
+        UndirectedMutableGraph<Vertex, Edge> g1 = buildSudokuGraph();
 
         // The true color number for this graph is 9. but the greedy heuristic is not the
best and returns 11.
         ColoredVertices<Vertex> sudoku = GraphColoring.coloring( g1 );



Mime
View raw message