|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
V
- the Graph vertices typeE
- the Graph edges typepublic interface MutableDirectedGraph<V extends Vertex,E extends Edge<V>>
The MutableDirectedGraph
is a directed graph that supports the addition and removal of
Vertex
and Edge
s.
Method Summary | |
---|---|
void |
addEdge(E e,
V source,
V target)
Adds a feature to the Edge attribute of the MutableDirectedGraph object. |
void |
addVertex(V v)
Adds a feature to the Vertex attribute of the MutableDirectedGraph object. |
void |
removeEdge(E e)
Adds a feature to the Edge attribute of the MutableDirectedGraph object |
void |
removeVertex(V v)
Removes the Vertex from the MutableGraph object. |
Methods inherited from interface org.apache.commons.graph.DirectedGraph |
---|
getInbound, getOutbound |
Methods inherited from interface org.apache.commons.graph.Graph |
---|
getEdges, getEdges, getVertices, getVertices |
Method Detail |
---|
void addVertex(V v) throws GraphException
Vertex
attribute of the MutableDirectedGraph
object.
v
- the Vertex
has to be added in this MutableDirectedGraph
instance.
GraphException
void addEdge(E e, V source, V target) throws GraphException
Edge
attribute of the MutableDirectedGraph
object.
e
- the Edge
has to be added to this MutableDirectedGraph
object.source
- the input Edge
sourcetarget
- the input Edge
target
GraphException
void removeVertex(V v) throws GraphException
Vertex
from the MutableGraph
object.
v
- the Vertex
has to be removed from this MutableDirectedGraph
instance.
GraphException
void removeEdge(E e) throws GraphException
Edge
attribute of the MutableDirectedGraph
object
e
- the Edge
has to be added in this MutableDirectedGraph
instance.
GraphException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |