causy-dev / causy

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

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

Closed LilithWittmann closed 4 months ago

LilithWittmann commented 4 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.