Graph::Predecessor
Defined in:
Returns a boolean value indicating whether one element precedes another.
TSGraph.h
Prototype
bool Predecessor(const GraphElementBase *first, const GraphElementBase *second);
Parameters
first |
The first element in the graph. |
second |
The second element in the graph. |
Description
The Predecessor
function returns true
if the element specified by the first
parameter precedes the element specified by the second
parameter in a graph, and it returns false
otherwise. In order for the first element to precede the second, there must be a sequence of relations starting at the first element that can be followed through a sequence of elements that ultimately finishes at the second element.
See Also
GraphElement::GetFirstOutgoingRelation
GraphElement::GetLastOutgoingRelation