graph: modify GetDependants to accept list of successful and failed jobs

cc @josephschorr
fialed -> failed