add a predicate to the node iterators for selecting nodes from a graph