Factor out query().id in favor of Graph.e/v