Added ability to create a subgraph.