Sage code for graph dynamics experiments