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/11 19:36:11 UTC
svn commit: r1134700 -
/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/MutableDirectedGraph.java
Author: simonetripodi
Date: Sat Jun 11 17:36:10 2011
New Revision: 1134700
URL: http://svn.apache.org/viewvc?rev=1134700&view=rev
Log:
fixed Vertex,Edge Generics types
Modified:
commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/MutableDirectedGraph.java
Modified: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/MutableDirectedGraph.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/MutableDirectedGraph.java?rev=1134700&r1=1134699&r2=1134700&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/MutableDirectedGraph.java (original)
+++ commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/MutableDirectedGraph.java Sat Jun 11 17:36:10 2011
@@ -24,32 +24,32 @@ import org.apache.commons.graph.exceptio
/**
* Description of the Interface
*/
-public interface MutableDirectedGraph
- extends DirectedGraph
+public interface MutableDirectedGraph<V extends Vertex, E extends Edge>
+ extends DirectedGraph<V, E>
{
/**
* Adds a feature to the Vertex attribute of the MutableDirectedGraph object
*/
- public void addVertex(Vertex v)
+ public void addVertex(V v)
throws GraphException;
/**
* Adds a feature to the Edge attribute of the MutableDirectedGraph object
*/
- public void addEdge(Edge e,
- Vertex source,
- Vertex target)
+ public void addEdge(E e,
+ V source,
+ V target)
throws GraphException;
/**
* Description of the Method
*/
- public void removeVertex(Vertex v)
+ public void removeVertex(V v)
throws GraphException;
/**
* Description of the Method
*/
- public void removeEdge(Edge e)
+ public void removeEdge(E e)
throws GraphException;
}