Add Predecessors method to DirectedGraph.