C4 Engine
C4 Engine API Documentation

GraphRelation::GetNextOutgoingRelation

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

relationType *GetNextOutgoingRelation(voidconst;

Description
The GetNextOutgoingRelation function returns the next outgoing relation for the graph element at which the relation for which the function is called starts. If there is no next 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::GetFirstOutgoingRelation function for the graph element, and then call the GetNextOutgoingRelation function iteratively for the returned relations until nullptr is returned.
See Also

GraphRelation::GetPreviousOutgoingRelation

GraphRelation::GetPreviousIncomingRelation

GraphRelation::GetNextIncomingRelation

GraphElement::GetFirstOutgoingRelation