Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement graph generator functions for common causal graphs #33

Open
adam2392 opened this issue Jan 10, 2023 · 0 comments
Open

Implement graph generator functions for common causal graphs #33

adam2392 opened this issue Jan 10, 2023 · 0 comments
Labels
Algorithms Related to graphical algorithms good first issue Good for newcomers
Milestone

Comments

@adam2392
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
They should be under pywhy_graphs.generators.*, where each function corresponds to some graph that is generated.

Describe the solution you'd like
The following graphs are very standard in causal inference:

  1. napkin graph
  2. bow graph
  3. iv graph
  4. front door graph
  5. back door graph

These can be implemented using the ADMG class.

An example pseudocode would be:

def napkin_graph():
     # implementation

Note this differs from networkx-API for generators, because there is no concept of a create_using. Since these are causal graphs with mixed-edges, they would always use a MixedEdgeGraph class.

@adam2392 adam2392 added the good first issue Good for newcomers label Jan 10, 2023
@adam2392 adam2392 added the Algorithms Related to graphical algorithms label Feb 17, 2023
@adam2392 adam2392 added this to the v0.2 milestone Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Algorithms Related to graphical algorithms good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant