C4 Engine Terathon Software C4 Engine API Documentation

• Utility Library

API Links
Developer Links

GraphEdge::GetPreviousOutgoingEdge

Defined in:  C4Graph.h
Returns the previous outgoing edge for a graph element.
Prototype

edgeType *GetPreviousOutgoingEdge(voidconst;

Description
The GetPreviousOutgoingEdge function returns the previous outgoing edge for the graph element at which the edge for which the function is called starts. If there is no previous outgoing edge, then the return value is nullptr.

To iterate through all outgoing edges for a graph element using this function, first call the GraphElement::GetLastOutgoingEdge function for the graph element, and then call the GetPreviousOutgoingEdge function iteratively for the returned edges until nullptr is returned.
See Also

GraphEdge::GetNextOutgoingEdge

GraphEdge::GetPreviousIncomingEdge

GraphEdge::GetNextIncomingEdge

GraphElement::GetLastOutgoingEdge