added classes for graph queries

Signed-off-by: pnatani <en.pratibha@gmail.com>