C4 Engine
C4 Engine API Documentation

GraphElement::GetLastIncomingRelation

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

relationType *GetLastIncomingRelation(voidconst;

Description
The GetLastIncomingRelation function returns the last incoming relation for a graph element. If there are no incoming relations, then the return value is nullptr.

To iterate through all incoming relations for a graph element, first call the GraphElement::GetLastIncomingRelation function, and then call the GraphRelation::GetPreviousIncomingRelation function iteratively for the returned relations until nullptr is returned.
See Also

GraphElement::GetFirstIncomingRelation

GraphElement::GetFirstOutgoingRelation

GraphElement::GetLastOutgoingRelation

GraphRelation::GetPreviousIncomingRelation