|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.inria.opengve.bridge.algorithms.common.CopyGraph<V,E,G>
public abstract class CopyGraph<V,E extends Link<V>,G extends Graph<V,E>>
This class is the bridge abstract impelmentation of graph copy. By copy we means that we copy only edgeSet and vertexSet. The vertices and edges are not copied. So vertices and edges are shared between the original and is copy.
Constructor Summary | |
---|---|
CopyGraph()
|
Method Summary | |
---|---|
G |
copyGraph(G g)
Make a copy of one graph. |
protected abstract HierarchicalSet<E> |
createEdgeSet(HierarchicalSet<V> vertexSet)
Create a new empty edgeSet. |
protected abstract G |
createGraph(HierarchicalSet<E> edgeSet)
Create a new graph. |
protected abstract HierarchicalSet<E> |
createSubEdgeSet(HierarchicalSet<E> superSet)
Create a new empty edgeSet subset of a given edge set. |
protected abstract HierarchicalSet<V> |
createVertexSet()
Create a new empty vertexSet. |
protected abstract HierarchicalSet<V> |
createVertexSet(HierarchicalSet<V> superSet)
Create a new empty vertexSet subset of a given vertex set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CopyGraph()
Method Detail |
---|
protected abstract HierarchicalSet<E> createEdgeSet(HierarchicalSet<V> vertexSet)
vertexSet
- The vertex on which the created edgeSet is based.
protected abstract HierarchicalSet<E> createSubEdgeSet(HierarchicalSet<E> superSet)
superSet
- The super set of the new create one.
protected abstract HierarchicalSet<V> createVertexSet()
protected abstract HierarchicalSet<V> createVertexSet(HierarchicalSet<V> superSet)
superSet
- The super set of the new created one.
public G copyGraph(G g)
g
- The graph to copy.
protected abstract G createGraph(HierarchicalSet<E> edgeSet)
edgeSet
- The edgeSet of the newly created graph.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |