You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by si...@apache.org on 2011/06/16 22:11:03 UTC

svn commit: r1136643 - in /commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/model: BaseLabeledEdge.java BaseLabeledWeightedEdge.java

Author: simonetripodi
Date: Thu Jun 16 20:11:03 2011
New Revision: 1136643

URL: http://svn.apache.org/viewvc?rev=1136643&view=rev
Log:
no needs to get the label when representing vertices in edges

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/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=1136643&r1=1136642&r2=1136643&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:11:03 2011
@@ -146,7 +146,7 @@ public class BaseLabeledEdge
     @Override
     public String toString()
     {
-        return format( "%s[ %s -> %s ]", label, head.getLabel(), tail.getLabel() );
+        return format( "%s[ %s -> %s ]", label, head, tail );
     }
 
 }

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=1136643&r1=1136642&r2=1136643&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:11:03 2011
@@ -110,7 +110,7 @@ public class BaseLabeledWeightedEdge
     @Override
     public String toString()
     {
-        return format( "%s[ %s -> %s (%s) ]", getLabel(), getHead().getLabel(), getTail().getLabel(), weight );
+        return format( "%s[ %s -> %s (%s) ]", getLabel(), getHead(), getTail(), weight );
     }
 
 }