Abort and give error message if function node dependency
graph has a cycle.