Add subgraph.