graph: add GetDependants method to retrieve next set of jobs