Here, the pdf is shown in green box (right), which is being compiled anytime the `.tex` file or `graph.pdf` file is changed (blue box). And the `graph.pdf` file is generated every time `graph.gv` file is changed (yellow box). So when you change the graviz file (red box), the `graph.pdf` is updated and then the final pdf. Hence, you can use it when you need to review changes without having to re-compile stuffs.
Repo:
https://github.com/Atreyagaurav/onchange