causy-dev / causy

Causal discovery made easy.
https://causy-dev.github.io/causy/
MIT License
33 stars 1 forks source link

feat(graph_model): add graph update pre+post hooks #48

Closed LilithWittmann closed 3 months ago

LilithWittmann commented 3 months ago

Hooks are code snippets that are custom code snippets which can be executed before or after an update of the graph happens. They can be e.g. used to filter certain updates (applying prior knowledge) or logging error states.

Currently there is a pre and a post hook for graph updates. Both receive the planned/executed updates. But while the pre hook can manipulate them the post hook can only receive them.