Skip to content

Commit

Permalink
Merge pull request #1773 from cmu-phil/vbc-05-21
Browse files Browse the repository at this point in the history
Update getLocalIndependenceFacts to check on independence
  • Loading branch information
jdramsey authored May 22, 2024
2 parents ae16a35 + aae647c commit 6b40b61
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public List<IndependenceFact> getLocalIndependenceFacts(Node x) {
// Make a new MsepTest based on the true graph.
MsepTest msepTest = new MsepTest(graph);
IndependenceResult testRes = msepTest.checkIndependence(x, y, parents);
if (testRes.isValid()) factList.add(testRes.getFact());
if (testRes.isIndependent()) factList.add(testRes.getFact());
}
return factList;
}
Expand Down

0 comments on commit 6b40b61

Please sign in to comment.