C4 Engine
C4 Engine API Documentation

GraphElement::GetFirstOutgoingRelation

Defined in:  TSGraph.h
Returns the first outgoing relation for a graph element.
Prototype

relationType *GetFirstOutgoingRelation(voidconst;

Description
The GetFirstOutgoingRelation function returns the first outgoing relation for a graph element. If there are no outgoing relations, then the return value is nullptr.

To iterate through all outgoing relations for a graph element, first call the GraphElement::GetFirstOutgoingRelation function, and then call the GraphRelation::GetNextOutgoingRelation function iteratively for the returned relations until nullptr is returned.
See Also

GraphElement::GetLastOutgoingRelation

GraphElement::GetFirstIncomingRelation

GraphElement::GetLastIncomingRelation

GraphRelation::GetNextOutgoingRelation