parameters: (self, graph=None)
return_statement: return [key for key in graph if not graph[key]]
docstring: Return a list of all leaves (nodes with no downstreams)
docstring_summary: Return a list of all leaves (nodes with no downstreams)
docstring_tokens: Return a list of all leaves ( nodes with no downstreams )
function: def all_leaves(self, graph=None):
          """ Return a list of all leaves (nodes with no downstreams) """
          if graph is None:
              graph = self.graph
          return [key for key in graph if not graph[key]]
function_tokens: def all_leaves ( self , graph = None ) : if graph is None : graph = self . graph return [ key for key in graph if not graph [ key ] ]