Uses graph depth-first search algorithm to detect cycles
faasr_check_workflow_cycle(faasr)
faasr
list with parsed and validated Payload
graph a graph representation of the Workflow