示例#1
0
文件: Task.py 项目: jakirkham/Cosmos2
 def all_predecessors(self, as_dict=False):
     """
     :return: (list) all tasks that descend from this task in the task_graph
     """
     d = breadth_first_search.bfs_predecessors(self.execution.task_graph().reverse(copy=False), self)
     if as_dict:
         return d
     return set(d.values())
示例#2
0
 def all_predecessors(self, as_dict=False):
     """
     :return: (list) all tasks that descend from this task in the task_graph
     """
     d = breadth_first_search.bfs_predecessors(self.execution.task_graph().reverse(copy=False), self)
     if as_dict:
         return d
     return set(d.values())