#include <abstractSubgraph.h>
Inheritance diagram for abstractSubgraph:
Public Member Functions | |
virtual const abstractMixedGraph * | SourceGraph () const =0 throw () |
virtual const abstractSubgraph * | ComplementarySubgraph () const =0 throw () |
virtual bool | HasNode (TNode node) const =0 throw (ERRange) |
virtual void | AddArc (TArc a)=0 throw (ERRange,ERRejected) |
virtual TArc | AddArc (TNode u, TNode v)=0 throw (ERRange,ERRejected) |
virtual void | AddNode (TNode u)=0 throw (ERRange,ERRejected) |
virtual void | OmitArc (TArc a)=0 throw (ERRange,ERRejected) |
virtual void | OmitArc (TNode u, TNode v)=0 throw (ERRange,ERRejected) |
virtual void | OmitNode (TNode u)=0 throw (ERRange,ERRejected) |
virtual void | OmitIsolatedNodes ()=0 throw () |
virtual sparseGraph * | CreateGraphObject () const throw () |
virtual void | Write (const char *fileName) const throw (ERFile) |
virtual TNode | StartNode (TArc) const =0 throw (ERRange) |
virtual TNode | EndNode (TArc) const =0 throw (ERRange) |
virtual bool | HasArc (TArc a) const =0 throw (ERRange) |
virtual TNode | N () const =0 throw () |
virtual TArc | M () const =0 throw () |
virtual unsigned long | Allocated () const throw () |
virtual TArc | Reverse (TArc a) const throw (ERRange) |
Ein Teilgraph enthält jeweils eine Teilmenge von Knoten und Kanten aus dem Ursprungsgraph getSourceGraph().
Momentan kann mit der Methode createGraphObject() ein graph-Objekt (das ja indirekt von abstractMixedGraph abgeleitet ist) erzeugt werden, welches alle Knoten des SourceGraph und alle Kanten des Teilgraphen enthält.
|
Implemented in complementarySubgraph, and subgraph. |
|
adds an arc (from sourcegraph) to the subgraph. If one of the nodes StartNode(a) or EndNode(a) isn't on the subgraph, it will be automatical be added.
Implemented in complementarySubgraph, and subgraph. |
|
Implemented in complementarySubgraph, and subgraph. |
|
Reimplemented from managedObject. Reimplemented in complementarySubgraph, and subgraph. |
|
returns a reference to a graph: SourceGraph without this graph The returned reference doesn't have to be deleted! Deletion will be made automatical. If SourceGraph G:= (V,E) and subgraph H:= (V1,E1) and V1 is part of V and E1 is part of E, then the returned graph I:= (V2,E2) is defined as follows:
=> the "WithoutGraph" of I is the original graph H. Implemented in complementarySubgraph, and subgraph. |
|
|
|
Implemented in complementarySubgraph, and subgraph. |
|
Implemented in complementarySubgraph, and subgraph. |
|
tests, if node is on this subgraph
Implemented in complementarySubgraph, and subgraph. |
|
returns the number of edges
Implemented in complementarySubgraph, and subgraph. |
|
returns the number of vertices
Implemented in complementarySubgraph, and subgraph. |
|
Implemented in complementarySubgraph, and subgraph. |
|
deletes an arc from the subgraph. The nodes StartNode(a) and EndNode(a) will remain on the subgraph.
Implemented in complementarySubgraph, and subgraph. |
|
Implemented in complementarySubgraph, and subgraph. |
|
Implemented in complementarySubgraph, and subgraph. |
|
|
|
getSourceGraph returns a reference to the original graph. The returned reference doesn't have to be deleted! Deletion will be made automatically. Implemented in complementarySubgraph, and subgraph. |
|
Implemented in complementarySubgraph, and subgraph. |
|
|