Skip to content

Commit ecc66e3

Browse files
authoredAug 24, 2024
Merge pull request #192 from kenneth-lee-ch/main
Fixed a bug in finding possible parent sets in FCI
2 parents a8964d6 + 286fd6e commit ecc66e3

File tree

1 file changed

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

1 file changed

+1
-2
lines changed
 

‎causallearn/search/ConstraintBased/FCI.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -583,8 +583,7 @@ def is_possible_parent(graph: Graph, potential_parent_node, child_node):
583583
if not graph.is_adjacent_to(potential_parent_node, child_node):
584584
return False
585585

586-
if graph.get_endpoint(child_node, potential_parent_node) == Endpoint.ARROW or \
587-
graph.get_endpoint(potential_parent_node, child_node) == Endpoint.TAIL:
586+
if graph.get_endpoint(child_node, potential_parent_node) == Endpoint.ARROW:
588587
return False
589588
else:
590589
return True

0 commit comments

Comments
 (0)