support for Graph.query().