GraphElementclass is the base class for elements in a directed graph.
template <class elementType, class relationType> class GraphElement : public GraphElementBase
||Returns the first outgoing relation for a graph element.|
||Returns the last outgoing relation for a graph element.|
||Returns the first incoming relation for a graph element.|
||Returns the last incoming relation for a graph element.|
||Returns the outgoing relation with a specific finish element.|
||Returns the incoming relation with a specific start element.|
||The type of the class that can be stored as an element in the graph. This parameter should be the type of the class that inherits directly from the |
||The type of the class that represents the relations in the graph.|
GraphElement(Graph<elementType, relationType> *graph);
||The graph to which the element should be added.|
GraphElementclass should be declared as a base class for objects that represent elements in a directed graph. The
elementTypetemplate parameter should match the class type of such objects. The
relationTypetemplate parameter should match the type of the class representing the relations in the graph.
graphparameter is specified, then the element is added to the graph object that it points to.
||Used internally to encapsulate common functionality that is independent of the template parameter.|