As used for "Topological data analysis of contagion maps for examining spreading processes on networks", please find code here.
Benjamin F. Maier and I tought a two-week summer school for high-school students and the teaching material is available on GitHub.
This excellent library is not created by myself but Jürgen Hackl. You can find it here. It is particularly well-suited for multilayer networks.