Skip to content

Commit 2eab72e

Browse files
authored
Merge pull request #220 from EvieQ01/main
Fix bug: node A and C should not be the same node
2 parents 9dc0365 + 165ed2d commit 2eab72e

File tree

1 file changed

+1
-1
lines changed
  • causallearn/search/ConstraintBased

1 file changed

+1
-1
lines changed

causallearn/search/ConstraintBased/FCI.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ def ruleR7(graph: Graph, changeFlag: bool,
545545
for node_C in intoBCircles:
546546
# pdb.set_trace()
547547
for node_A in node_A_list:
548-
# pdb.set_trace()
548+
if node_A == node_C: continue
549549
if not graph.is_adjacent_to(node_A, node_C):
550550
changeFlag = True
551551
edge = graph.get_edge(node_B, node_C)

0 commit comments

Comments
 (0)