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

Add graph goals #11

Merged

Conversation

brandonwillard
Copy link
Member

@brandonwillard brandonwillard commented Dec 27, 2019

  • map_anyo applies a goal to all elements in a list, succeeding
    if at least one is found successful.
  • reduceo applies a goal recursively until a fixed-point is reached.
  • walko applies a goal throughout a graph.

Closes #9.

@brandonwillard
Copy link
Member Author

This PR also introduces some simple symbolic algebra examples using these new graph relations: doc/graph.md

@brandonwillard
Copy link
Member Author

I'm cleaning up doc/graph.md and need to close #12 in order to produce better looking output for the last example.

- `seq_apply_anyo` applies a goal to all elements in a list, succeeding
if only one is found successful.
- `reduceo` applies a goal recursively until a fixed-point is reached.
- `graph_applyo` applies a goal throughout a graph.

Closes logpy#9.
`nullo` now handles variable arguments and has a configurable default `ConsNull`
type.
@brandonwillard brandonwillard force-pushed the add-basic-graph-goals branch 2 times, most recently from 51bb9ad to 6b40238 Compare January 1, 2020 01:38
@brandonwillard brandonwillard changed the title Add graph goals seq_apply_anyo, reduceo, graph_applyo Add graph goals Jan 1, 2020
- `seq_apply_anyo` is now `map_anyo`
- `graph_applyo` is now `walko`
- Added a term-graph variation of `walko` that provides some control over
  the subgraphs that get traversed.
@brandonwillard brandonwillard merged commit 5a96fcb into pythological:master Jan 1, 2020
@brandonwillard brandonwillard deleted the add-basic-graph-goals branch January 1, 2020 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move graph goals from Symbolic PyMC
1 participant