Skip to content

Commit

Permalink
Merge pull request #192 from kenneth-lee-ch/main
Browse files Browse the repository at this point in the history
Fixed a bug in finding possible parent sets in FCI
  • Loading branch information
kunwuz authored Aug 24, 2024
2 parents a8964d6 + 286fd6e commit ecc66e3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions causallearn/search/ConstraintBased/FCI.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,7 @@ def is_possible_parent(graph: Graph, potential_parent_node, child_node):
if not graph.is_adjacent_to(potential_parent_node, child_node):
return False

if graph.get_endpoint(child_node, potential_parent_node) == Endpoint.ARROW or \
graph.get_endpoint(potential_parent_node, child_node) == Endpoint.TAIL:
if graph.get_endpoint(child_node, potential_parent_node) == Endpoint.ARROW:
return False
else:
return True
Expand Down

0 comments on commit ecc66e3

Please sign in to comment.