C4 Engine
C4 Engine API Documentation

GraphElement::GetLastOutgoingRelation

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

relationType *GetLastOutgoingRelation(voidconst;

Description
The GetLastOutgoingRelation function returns the last 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::GetLastOutgoingRelation function, and then call the GraphRelation::GetPreviousOutgoingRelation function iteratively for the returned relations until nullptr is returned.
See Also

GraphElement::GetFirstOutgoingRelation

GraphElement::GetFirstIncomingRelation

GraphElement::GetLastIncomingRelation

GraphRelation::GetPreviousOutgoingRelation