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/12 00:11:46 UTC

svn commit: r1134791 - /commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/DirectedGraph.java

Author: simonetripodi
Date: Sat Jun 11 22:11:46 2011
New Revision: 1134791

URL: http://svn.apache.org/viewvc?rev=1134791&view=rev
Log:
fixed wrong Generics usage

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

Modified: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/DirectedGraph.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/DirectedGraph.java?rev=1134791&r1=1134790&r2=1134791&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/DirectedGraph.java (original)
+++ commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/DirectedGraph.java Sat Jun 11 22:11:46 2011
@@ -41,7 +41,7 @@ public interface DirectedGraph<V extends
      * @param v the {@link Vertex} which inbound {@link Edge}s have to be returned
      * @return the set of {@link Edge}s which are inbound to the {@link Vertex}.
      */
-    Set<E> getInbound( Vertex v );
+    Set<E> getInbound( V v );
 
     /**
      * Returns the set of {@link Edge}s which lead away from the {@link Vertex}.
@@ -49,7 +49,7 @@ public interface DirectedGraph<V extends
      * @param v the {@link Vertex} which outbound {@link Edge}s have to be returned
      * @return the set of {@link Edge}s which lead away from the {@link Vertex}.
      */
-    Set<E> getOutbound( Vertex v );
+    Set<E> getOutbound( V v );
 
     /**
      * Returns the {@link Vertex} which originates the {@link Edge}.
@@ -57,7 +57,7 @@ public interface DirectedGraph<V extends
      * @param e the {@link Edge} which has the returned {@link Vertex} as source.
      * @return the {@link Vertex} which originates the {@link Edge}.
      */
-    Vertex getSource( Edge e );
+    V getSource( E e );
 
     /**
      * Returns the {@link Vertex} which terminates the {@link Edge}.
@@ -65,6 +65,6 @@ public interface DirectedGraph<V extends
      * @param e the {@link Edge} which has the returned {@link Vertex} as target.
      * @return the {@link Vertex} which terminates the {@link Edge}.
      */
-    Vertex getTarget( Edge e );
+    V getTarget( E e );
 
 }