Preventing cycles
In the validation example, we saw how to use
the isValidConnection
callback
to prevent certain connections from being created. This example shows how to use
the getOutgoers
util to check if a new
connection would cause a cycle in the flow.