Skip to content

Commit c374771

Browse files
fixed finding possible parents
1 parent a1b0919 commit c374771

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
@@ -582,8 +582,7 @@ def is_possible_parent(graph: Graph, potential_parent_node, child_node):
582582
if not graph.is_adjacent_to(potential_parent_node, child_node):
583583
return False
584584

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

0 commit comments

Comments
 (0)