We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64596f6 commit 5e0d8e6Copy full SHA for 5e0d8e6
causal_testing/specification/causal_dag.py
@@ -95,7 +95,7 @@ def list_all_min_sep(
95
remaining = neighbour_nodes - outcome_node_set
96
if remaining:
97
# 6.1. If so, sample a random node from the set of treatment nodes' neighbours not in the outcome node set
98
- chosen = {next(iter(remaining))}
+ chosen = {remaining.pop()}
99
# 6.2. Add this node to the treatment node set and recurse (left branch)
100
yield from list_all_min_sep(
101
graph,
0 commit comments