subgraph demo