subgraph working