API for subgraph extraction created