Cache tizk graphs externally

This commit adds LaTeX code to avoid recalculating the Tikz code
for graphs, which speeds up compilation.
Start to fill in in-sample examples