counterfactual_query
Test whether a predicted node stays reachable from a seed when a specific edge is removed, returning all valid paths that avoid that edge without changing the graph.
Instructions
3B.6 — "What if we remove edge (removeFrom → removeTo)? Is predict still reachable from seed?" Returns chains from seed to predict that DO NOT use the removed edge. Pure: does not mutate the graph.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | Yes | ||
| predict | Yes | ||
| maxDepth | No | ||
| removeTo | Yes | ||
| removeFrom | Yes |