Skip to content

Commit

Permalink
Merge branch 'aryan_valid_pag' of github.com:aryan26roy/pywhy-graphs …
Browse files Browse the repository at this point in the history
…into aryan_valid_pag
  • Loading branch information
aryan26roy committed Jul 14, 2024
2 parents 9360c48 + 57274a1 commit 5844e08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/intro/checking_validity_of_a_pag.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@
# %%
# Validity of a PAG
# ---------------------------
# For a PAG to be valid, it must represent a valid
# For a PAG to be valid, it must represent a valid
# equivalent class of MAGs. This can be verified by
# turning the PAG into an MAG and then checking the
# turning the PAG into an MAG and then checking the
# validity of the MAG
# To check if the constructed PAG is a valid one in
# pywhy-graphs, we can simply do:
Expand All @@ -80,7 +80,7 @@
# the representation of multiple marks as encoded
# by the different MAGs this PAG represents:

pag.remove_edge("S","I",pag.circle_edge_name)
pag.remove_edge("S", "I", pag.circle_edge_name)

# returns False
print(pywhy_graphs.valid_pag(pag))
Expand Down

0 comments on commit 5844e08

Please sign in to comment.