public List<BaseWork> getChildren(BaseWork work) {
    assert workGraph.containsKey(work)
      && workGraph.get(work) != null;
    return new LinkedList<BaseWork>(workGraph.get(work));
  }
getChildren returns all the nodes with edges leading out of work
ql/src/java/org/apache/hadoop/hive/ql/plan/TezWork.java