C4 Engine
C4 Engine API Documentation

GraphRelation::GetPreviousOutgoingRelation

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

relationType *GetPreviousOutgoingRelation(voidconst;

Description
The GetPreviousOutgoingRelation function returns the previous outgoing relation for the graph element at which the relation for which the function is called starts. If there is no previous outgoing relation, then the return value is nullptr.

To iterate through all outgoing relations for a graph element using this function, first call the GraphElement::GetLastOutgoingRelation function for the graph element, and then call the GetPreviousOutgoingRelation function iteratively for the returned relations until nullptr is returned.
See Also

GraphRelation::GetNextOutgoingRelation

GraphRelation::GetPreviousIncomingRelation

GraphRelation::GetNextIncomingRelation

GraphElement::GetLastOutgoingRelation