Skip to content

Commit

Permalink
Cleaned up the docstring
Browse files Browse the repository at this point in the history
Signed-off-by: Aryan Roy <aryanroy5678@gmail.com>
  • Loading branch information
aryan26roy authored and adam2392 committed Oct 30, 2023
1 parent d335367 commit 194f663
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pywhy_graphs/algorithms/pag.py
Original file line number Diff line number Diff line change
Expand Up @@ -1108,9 +1108,9 @@ def _meek_rule4(graph: CPDAG, i: str, j: str) -> bool:
def pag_to_mag(graph):
"""Sample a MAG from a PAG using Zhang's algorithm.
Using algorithm defined in Theorem 2 of
:footcite:`Zhang2008`, turns all o-> edges to -> and -o edges to ->. Then converts the
input graph into a DAG with no unshielded colliders.
Using the algorithm defined in Theorem 2 of :footcite:`Zhang2008`, which turns all
o-> edges to -> and -o edges to ->, then it converts the graph into a DAG with
no unshielded colliders using the meek rules.
Parameters
----------
Expand Down

0 comments on commit 194f663

Please sign in to comment.