Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 14, 2024
1 parent 0a03535 commit 57274a1
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 @@ -57,9 +57,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 @@ -74,7 +74,7 @@
# a single mark in the graph such that the PAG
# does not represent the equivalent class of MAGs:

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 57274a1

Please sign in to comment.