adds interface to retrieve subgraph based on a set of vertices