Skip to content

Commit ded0df2

Browse files
committed
Add graph mutation docs
1 parent 5ca9db1 commit ded0df2

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

docs/source/graph_mutation.rst

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Graph Mutation
2+
==============
3+
================================= =======================================================================
4+
Algorithm Implementation
5+
================================= =======================================================================
6+
Evans Simplification [evans2016]_ :func:`y0.algorithm.simplify_latent.evans_simplify`
7+
Add CI edges [taheri2024]_ :func:`y0.algorithm.conditional_independencies.add_ci_undirected_edges`
8+
================================= =======================================================================

docs/source/index.rst

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ y0 |release| Documentation
1010
dsl
1111
parser
1212
graph
13+
graph_mutation
1314
examples
1415
mutation
1516
conditional_independence

src/y0/algorithm/conditional_independencies.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# -*- coding: utf-8 -*-
22

3-
"""An implementation to get conditional independencies of an ADMG from [pearl2009]_."""
3+
"""An implementation to get conditional independencies of an ADMG from [pearl2009]_.
4+
5+
.. [taheri2024] Eliater: a workflow and open source implementation for estimation of
6+
outcomes of perturbations from observational measurements in biomolecular networks
7+
"""
48

59
from functools import partial
610
from itertools import combinations, groupby
@@ -39,6 +43,8 @@ def add_ci_undirected_edges(
3943
) -> NxMixedGraph:
4044
"""Add undirected edges between d-separated nodes that fail a data-driven conditional independency test.
4145
46+
Inspired by [taheri2024]_.
47+
4248
:param graph: An acyclic directed mixed graph
4349
:param data: observational data corresponding to the graph
4450
:param method:

0 commit comments

Comments
 (0)