def getcycle(d, keys):
 return _toposort(d, keys=keys, returncycle=True)

def getcycle ( d , keys ) : return _toposort ( d , keys = keys , returncycle = True )
return a list of nodes that form a cycle if dask is not a dag .