|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mascoptLib.util.ObservableObject | +--mascoptLib.abstractGraph.MascoptObject | +--mascoptLib.abstractGraph.AbstractGraph | +--mascoptLib.graphs.DiGraph
The Graph class constructs a non directed graph using a node set and an edge set. It guaranty that, at any time, the EdgeSet and NodeSet objects stay coherent. It provides facilities to copy graphs and construct subgraphs. The DiGraph class constructs directed graph with NodeSet and ArcSet objects. Graph and DiGraph derive from MascoptObject.
Constructor Summary | |
DiGraph()
Default constructor of a Digraph. |
|
DiGraph(mascoptLib.graphs.DiGraph digraph)
Constructor of a subgraph. |
|
DiGraph(mascoptLib.graphs.DiGraph graph,
boolean copyElements)
Copy all nodes, edges, edge and node set of a graph, creating a new graph. |
|
DiGraph(mascoptLib.graphs.VertexSet nodeSet,
mascoptLib.graphs.ArcSet arcSet)
Constructor using a node set and an arc set. |
Method Summary | |
mascoptLib.graphs.Graph |
constructGraph()
Construct a Graph copy of the Digraph replacing arcs by edges and using same nodes. |
mascoptLib.graphs.DiGraph |
copyDiGraph()
Copy all nodes, arcs, arc and node set of a graph, creating a new digraph. |
mascoptLib.graphs.ArcSet |
getArcSet()
Returns the arc set of the graph. |
mascoptLib.abstractGraph.AbstractGraphFactory |
getFactory()
Give the factory creating objects not abstract. |
mascoptLib.graphs.VertexSet |
getVertexSet()
Returns the node set of the graph. |
void |
replace(mascoptLib.graphs.Vertex node,
mascoptLib.graphs.DiGraph g)
Not Implemented . |
void |
replace(mascoptLib.graphs.Vertex node,
mascoptLib.graphs.VertexSet nodeSet)
Not Implemented . |
boolean |
setArcSet(mascoptLib.graphs.ArcSet arcSet)
Change the edge set of the graph. |
boolean |
setVertexSet(mascoptLib.graphs.VertexSet nodeSet)
Change the node set of the graph. |
String |
toString()
Converts the Graph in string to be printed. |
Methods inherited from class mascoptLib.abstractGraph.AbstractGraph |
breadthFirstIterator, checkIntegrity, copyAbstractGraph, countAllAbstractGraphs, depthFirstIterator, free, getAbstractEdgeSet, getAbstractVertexSet, getSuperGraph, isSubGraph, replace, replace, setAbstractEdgeSet, setAbstractVertexSet, setSuperGraph |
Methods inherited from class mascoptLib.abstractGraph.MascoptObject |
copyValues, countAllObjects, deleteValue, deleteValue, existValue, existValue, getDoubleValue, getDoubleValue, getDouValue, getDouValue, getId, getIntegerValue, getIntegerValue, getIntValue, getIntValue, getName, getValue, getValue, getValueContexts, getValueDataType, getValueDataType, getValueEntries, notifyOnValueChange, removeAllValues, setDoubleValue, setDoubleValue, setDouValue, setDouValue, setIntegerValue, setIntegerValue, setIntValue, setIntValue, setName, setValue, setValue, setValue, setValue, setValue, setValue, update |
Methods inherited from class mascoptLib.util.ObservableObject |
addAddObserver, addRemoveObserver, addValueObserver, countAddObservers, countRemoveObservers, countValueObservers, deleteAddObserver, deleteAddObserver, deleteRemoveObserver, deleteRemoveObserver, deleteValueObserver, deleteValueObserver |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DiGraph()
public DiGraph(mascoptLib.graphs.VertexSet nodeSet, mascoptLib.graphs.ArcSet arcSet)
nodeSet
- the node set to use when constructing the
graph.arcSet
- the arc set to use when constructing the
graph.public DiGraph(mascoptLib.graphs.DiGraph digraph)
digraph
- the graph used for the construction of the subgraph.public DiGraph(mascoptLib.graphs.DiGraph graph, boolean copyElements)
setValue
are lost.
copyElements
- indicates if new nodes and edges have to be
duplicated. If false, the current nodes and edges of the graph are
used. On the contrary, new nodes and edges are created and you loose
the values stored in it.Method Detail |
public String toString()
toString
in class AbstractGraph
public mascoptLib.abstractGraph.AbstractGraphFactory getFactory()
getFactory
in class AbstractGraph
public mascoptLib.graphs.VertexSet getVertexSet()
public boolean setVertexSet(mascoptLib.graphs.VertexSet nodeSet)
nodeSet
- the node set to use in the graph.
public mascoptLib.graphs.ArcSet getArcSet()
public boolean setArcSet(mascoptLib.graphs.ArcSet arcSet)
arcSet
- the edge set to use in the graph.
public void replace(mascoptLib.graphs.Vertex node, mascoptLib.graphs.DiGraph g)
public void replace(mascoptLib.graphs.Vertex node, mascoptLib.graphs.VertexSet nodeSet)
public mascoptLib.graphs.DiGraph copyDiGraph()
setValue
is lost.
public mascoptLib.graphs.Graph constructGraph()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |