|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.graph.model.BaseGraph<V,E> org.apache.commons.graph.model.BaseMutableGraph<V,E>
V
- the Graph vertices typeE
- the Graph edges typepublic abstract class BaseMutableGraph<V extends Vertex,E extends Edge<V>>
Basic abstract in-memory based of a simple mutable Graph
implementation.
Constructor Summary | |
---|---|
BaseMutableGraph()
|
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. |
protected abstract void |
decorateAddEdge(E e)
|
protected abstract void |
decorateAddVertex(V v)
|
protected abstract void |
decorateRemoveEdge(E e)
|
protected abstract void |
decorateRemoveVertex(V v)
|
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 class org.apache.commons.graph.model.BaseGraph |
---|
getAdjacencyList, getAllEdges, getEdges, getEdges, getVertices, getVertices |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.commons.graph.Graph |
---|
getEdges, getEdges, getVertices, getVertices |
Constructor Detail |
---|
public BaseMutableGraph()
Method Detail |
---|
public final void addVertex(V v)
Vertex
attribute of the MutableGraph
object.
addVertex
in interface MutableGraph<V extends Vertex,E extends Edge<V>>
v
- the Vertex
has to be added in this MutableGraph
instance.protected abstract void decorateAddVertex(V v)
v
- public final void removeVertex(V v)
Vertex
from the MutableGraph
object.
removeVertex
in interface MutableGraph<V extends Vertex,E extends Edge<V>>
v
- the Vertex
has to be removed from this MutableGraph
instance.protected abstract void decorateRemoveVertex(V v)
v
- public final void addEdge(E e)
Edge
attribute of the MutableGraph
object
addEdge
in interface MutableGraph<V extends Vertex,E extends Edge<V>>
e
- the Edge
has to be added in this MutableGraph
instance.protected abstract void decorateAddEdge(E e)
e
- public final void removeEdge(E e)
Edge
from the MutableGraph
object.
removeEdge
in interface MutableGraph<V extends Vertex,E extends Edge<V>>
e
- the Edge
has to be removed from this MutableGraph
instance.protected abstract void decorateRemoveEdge(E e)
e
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |