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

cc @josephschorr
succesfful -> successful