org.apache.commons.graph
Interface MutableGraph<V extends Vertex,E extends Edge<V>>

Type Parameters:
V - the Graph vertices type
E - the Graph edges type
All Superinterfaces:
Graph<V,E>
All Known Implementing Classes:
BaseMutableGraph, DirectedMutableGraph, DirectedMutableWeightedGraph

public interface MutableGraph<V extends Vertex,E extends Edge<V>>
extends Graph<V,E>

The MutableGraph is a graph that supports the addition and removal of Vertex and Edges.


Method Summary
 void addEdge(E e)
          Adds a feature to the Edge attribute of the MutableGraph object
 void addVertex(V v)
          Adds a feature to the Vertex attribute of the MutableGraph object.
 void removeEdge(E e)
          Removed the Edge from the MutableGraph object.
 void removeVertex(V v)
          Removes the Vertex from the MutableGraph object.
 
Methods inherited from interface org.apache.commons.graph.Graph
getEdges, getEdges, getVertices, getVertices
 

Method Detail

addVertex

void addVertex(V v)
Adds a feature to the Vertex attribute of the MutableGraph object.

Parameters:
v - the Vertex has to be added in this MutableGraph instance.

removeVertex

void removeVertex(V v)
Removes the Vertex from the MutableGraph object.

Parameters:
v - the Vertex has to be removed from this MutableGraph instance.

addEdge

void addEdge(E e)
Adds a feature to the Edge attribute of the MutableGraph object

Parameters:
e - the Edge has to be added in this MutableGraph instance.

removeEdge

void removeEdge(E e)
Removed the Edge from the MutableGraph object.

Parameters:
e - the Edge has to be removed from this MutableGraph instance.


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.