C4 Engine
C4 Engine API Documentation

GraphElement::GetFirstIncomingRelation

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

relationType *GetFirstIncomingRelation(voidconst;

Description
The GetFirstIncomingRelation function returns the first 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::GetFirstIncomingRelation function, and then call the GraphRelation::GetNextIncomingRelation function iteratively for the returned relations until nullptr is returned.
See Also

GraphElement::GetLastIncomingRelation

GraphElement::GetFirstOutgoingRelation

GraphElement::GetLastOutgoingRelation

GraphRelation::GetNextIncomingRelation