Just empty the preds instead of new instance.

By calling the clear() method rather than creating a new set, we obtain
much better performance.
Merge branch 'master' into jgrapht

This merges the pred set clear optimization.