IPython notebook example of time-varying network analysis