commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1136642 - in /commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/model: BaseLabeledEdge.java BaseLabeledVertex.java BaseLabeledWeightedEdge.java
Date Thu, 16 Jun 2011 20:08:47 GMT
Author: simonetripodi
Date: Thu Jun 16 20:08:47 2011
New Revision: 1136642

URL: http://svn.apache.org/viewvc?rev=1136642&view=rev
Log:
fixed all toString() representations

Modified:
    commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/model/BaseLabeledEdge.java
    commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/model/BaseLabeledVertex.java
    commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/model/BaseLabeledWeightedEdge.java

Modified: commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/model/BaseLabeledEdge.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/model/BaseLabeledEdge.java?rev=1136642&r1=1136641&r2=1136642&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/model/BaseLabeledEdge.java
(original)
+++ commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/model/BaseLabeledEdge.java
Thu Jun 16 20:08:47 2011
@@ -146,7 +146,7 @@ public class BaseLabeledEdge
     @Override
     public String toString()
     {
-        return format( "Edge(label=%s, head=%s, tail=%s)", label, head.getLabel(), tail.getLabel()
);
+        return format( "%s[ %s -> %s ]", label, head.getLabel(), tail.getLabel() );
     }
 
 }

Modified: commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/model/BaseLabeledVertex.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/model/BaseLabeledVertex.java?rev=1136642&r1=1136641&r2=1136642&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/model/BaseLabeledVertex.java
(original)
+++ commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/model/BaseLabeledVertex.java
Thu Jun 16 20:08:47 2011
@@ -97,7 +97,7 @@ public class BaseLabeledVertex
     @Override
     public String toString()
     {
-        return format( "Vertex(label=%s)", label );
+        return format( "{ %s }", label );
     }
 
 }

Modified: commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/model/BaseLabeledWeightedEdge.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/model/BaseLabeledWeightedEdge.java?rev=1136642&r1=1136641&r2=1136642&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/model/BaseLabeledWeightedEdge.java
(original)
+++ commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/model/BaseLabeledWeightedEdge.java
Thu Jun 16 20:08:47 2011
@@ -110,7 +110,7 @@ public class BaseLabeledWeightedEdge
     @Override
     public String toString()
     {
-        return format( "Vertex(label=%s, weight=%s)", getLabel(), weight );
+        return format( "%s[ %s -> %s (%s) ]", getLabel(), getHead().getLabel(), getTail().getLabel(),
weight );
     }
 
 }



Mime
View raw message