Add strategy for Graph.v/e.

Implement IdGraphStrategy now that graph query is gone.