An ad-hoc collection of useful code for graphs; starting with findAll, which
is graph-specific, and extending to iteratorToSet and iteratorToList, which
are here because they are used in tests and in the bulk update handlers.
author: kers
Answer an iterator covering all the triples in the specified graph.
Parameters: g - the graph from which to extract triples an iterator over all the graph's triples