def get_deps(dsk):
 dependencies = {k: get_dependencies(dsk, task=v) for (k, v) in dsk.items()}
 dependents = reverse_dict(dependencies)
 return (dependencies, dependents)

def get_deps ( dsk ) : dependencies = { k : get_dependencies ( dsk , task = v ) for ( k , v ) in dsk . items ( ) } dependents = reverse_dict ( dependencies ) return ( dependencies , dependents )
get dependencies and dependents from dask dask graph .