C4 Engine
C4 Engine API Documentation

GraphRelation::GetNextIncomingRelation

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

relationType *GetNextIncomingRelation(voidconst;

Description
The GetNextIncomingRelation function returns the next incoming relation for the graph element at which the relation for which the function is called finishes. If there is no next incoming relation, then the return value is nullptr.

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

GraphRelation::GetPreviousIncomingRelation

GraphRelation::GetPreviousOutgoingRelation

GraphRelation::GetNextOutgoingRelation

GraphElement::GetFirstIncomingRelation