Add subgraph filter to context