C4 Engine
C4 Engine API Documentation

GraphRelation::GetPreviousIncomingRelation

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

relationType *GetPreviousIncomingRelation(voidconst;

Description
The GetPreviousIncomingRelation function returns the previous incoming relation for the graph element at which the relation for which the function is called finishes. If there is no previous 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::GetLastIncomingRelation function for the graph element, and then call the GetPreviousIncomingRelation function iteratively for the returned relations until nullptr is returned.
See Also

GraphRelation::GetNextIncomingRelation

GraphRelation::GetPreviousOutgoingRelation

GraphRelation::GetNextOutgoingRelation

GraphElement::GetLastIncomingRelation