Method WillCreateRecursive
WillCreateRecursive(IEdge)
Returns whether adding an edge would create a recursive dependency path.
public bool WillCreateRecursive(IEdge edge)
Parameters
edgeIEdgeThe candidate edge to test.
Returns
- bool
true when the candidate edge would allow traversal from its input node back to its own output node; otherwise, false.
Remarks
The check walks outward from the candidate input node through existing outgoing edges using a stack-based search.