mascoptLib.abstractGraph
Interface AbstractGraphFactory

All Known Implementing Classes:
DiGraphFactory, GraphFactory

public interface AbstractGraphFactory

The factory building Graphs.

Version:
Wed Feb 20 18:37:37 2002
Author:
bbongiov@bing.inria.fr

Method Summary
 mascoptLib.abstractGraph.AbstractGraph newAbstractCopyGraph(mascoptLib.abstractGraph.AbstractGraph graph, boolean copyElements)
          Constructs a copy of a graph.
 mascoptLib.abstractGraph.AbstractPath newAbstractCopyPath(mascoptLib.abstractGraph.AbstractPath path)
          Constructs a copy of a path.
 mascoptLib.abstractGraph.AbstractEdge newAbstractEdge(mascoptLib.abstractGraph.AbstractVertex x, mascoptLib.abstractGraph.AbstractVertex y)
          Constructs an edge beetween two vertices.
 mascoptLib.abstractGraph.AbstractEdgeSet newAbstractEdgeSet(mascoptLib.abstractGraph.AbstractEdgeSet edgeSet)
          Constructs a new edge set which is a sub set of an other edge set.
 mascoptLib.abstractGraph.AbstractEdgeSet newAbstractEdgeSet(mascoptLib.abstractGraph.AbstractEdgeSet es, mascoptLib.abstractGraph.AbstractVertexSet abstractVertexSet)
          Constructs a new edge set which is as sub set of an other edge set and based on a vertex set.
 mascoptLib.abstractGraph.AbstractEdgeSet newAbstractEdgeSet(mascoptLib.abstractGraph.AbstractVertexSet vertexSet)
          Constructs a new edge set based on a vertex set.
 mascoptLib.abstractGraph.AbstractGraph newAbstractGraph(mascoptLib.abstractGraph.AbstractGraph graph)
          Constructs a sub graph of a graph.
 mascoptLib.abstractGraph.AbstractGraph newAbstractGraph(mascoptLib.abstractGraph.AbstractVertexSet vertexSet, mascoptLib.abstractGraph.AbstractEdgeSet edgeSet)
          Constructs a new abstract Graph based on a vertex set and an edge set.
 mascoptLib.abstractGraph.AbstractPath newAbstractPath(mascoptLib.abstractGraph.AbstractEdgeSet edgeSet)
          Constructs a new path based on a edge set.
 mascoptLib.abstractGraph.AbstractVertex newAbstractVertex()
          Constructs a vertex.
 mascoptLib.abstractGraph.AbstractVertexSet newAbstractVertexSet()
          Default vertex set constructor.
 mascoptLib.abstractGraph.AbstractVertexSet newAbstractVertexSet(mascoptLib.abstractGraph.AbstractVertexSet vertexSet)
          Constructs a new vertex set based on a vertex set.
 

Method Detail

newAbstractGraph

public mascoptLib.abstractGraph.AbstractGraph newAbstractGraph(mascoptLib.abstractGraph.AbstractVertexSet vertexSet,
                                                               mascoptLib.abstractGraph.AbstractEdgeSet edgeSet)
Constructs a new abstract Graph based on a vertex set and an edge set.

Parameters:
vertexSet - the vertex set of the new graph
edgeSet - the edge set of the new graph

newAbstractGraph

public mascoptLib.abstractGraph.AbstractGraph newAbstractGraph(mascoptLib.abstractGraph.AbstractGraph graph)
Constructs a sub graph of a graph. A sub graph is a graph wich vertex set, respictevely edge set, is included in the original vertex set, respictevely, in the original edge set. The constructed graph is empty.

Parameters:
graph - the father graph of the graph to construct.

newAbstractCopyGraph

public mascoptLib.abstractGraph.AbstractGraph newAbstractCopyGraph(mascoptLib.abstractGraph.AbstractGraph graph,
                                                                   boolean copyElements)
Constructs a copy of a graph. This constructor allows to copy a graph and all its parts.

Parameters:
copyElements - which indicates if the vertices and edges have to be copied. If not, then only the set are duplicated.
graph - the graph to copy.

newAbstractVertexSet

public mascoptLib.abstractGraph.AbstractVertexSet newAbstractVertexSet()
Default vertex set constructor.


newAbstractVertexSet

public mascoptLib.abstractGraph.AbstractVertexSet newAbstractVertexSet(mascoptLib.abstractGraph.AbstractVertexSet vertexSet)
Constructs a new vertex set based on a vertex set.

Parameters:
vertexSet - the vertex set used as base to the vertex set.
Returns:
an abstract vertex set empty.

newAbstractVertex

public mascoptLib.abstractGraph.AbstractVertex newAbstractVertex()
Constructs a vertex.


newAbstractEdgeSet

public mascoptLib.abstractGraph.AbstractEdgeSet newAbstractEdgeSet(mascoptLib.abstractGraph.AbstractVertexSet vertexSet)
Constructs a new edge set based on a vertex set.

Parameters:
vertexSet - the vertex set used as base to the edge set.
Returns:
an abstract edge set empty.

newAbstractEdgeSet

public mascoptLib.abstractGraph.AbstractEdgeSet newAbstractEdgeSet(mascoptLib.abstractGraph.AbstractEdgeSet edgeSet)
Constructs a new edge set which is a sub set of an other edge set.

Parameters:
edgeSet - the edge set used as base to the edge set.
Returns:
an abstract edge set empty.

newAbstractEdgeSet

public mascoptLib.abstractGraph.AbstractEdgeSet newAbstractEdgeSet(mascoptLib.abstractGraph.AbstractEdgeSet es,
                                                                   mascoptLib.abstractGraph.AbstractVertexSet abstractVertexSet)
Constructs a new edge set which is as sub set of an other edge set and based on a vertex set. This is the most generic constructor. It permits to use a specific vertex set as the base of the new edge set. Then, it permits to associate the new edge set with an other edge set: the new is a sub set of the other.

Parameters:
es - the father edge set.
abstractVertexSet - the base of vertices of the new edge set.
Returns:
an abstract edge set empty.

newAbstractEdge

public mascoptLib.abstractGraph.AbstractEdge newAbstractEdge(mascoptLib.abstractGraph.AbstractVertex x,
                                                             mascoptLib.abstractGraph.AbstractVertex y)
Constructs an edge beetween two vertices.

Parameters:
x - the first vertex.
y - the second vertex.
Returns:
the resulting edge.

newAbstractPath

public mascoptLib.abstractGraph.AbstractPath newAbstractPath(mascoptLib.abstractGraph.AbstractEdgeSet edgeSet)
Constructs a new path based on a edge set. The path is empty when constructed. Only edges from the edgeSet can be added in the path. It models the fact that the path is a subgraph of the main graph. Then, use the edge set of the graph to construct new paths.

Parameters:
edgeSet - the base of the path
Returns:
a empty path.

newAbstractCopyPath

public mascoptLib.abstractGraph.AbstractPath newAbstractCopyPath(mascoptLib.abstractGraph.AbstractPath path)
Constructs a copy of a path. This constructor allows to copy a path and all its parts. Vertices and edges are not copied.