SIS display example ------------------- :download:`Downloadable Source Code ` The code below produces a snapshot of an SIS epidemic with the timeseries: .. image:: SIS_2dgrid.png :width: 90 % and without the timeseries: .. image:: SIS_2dgrid_no_time_series.png :width: 50 % We start with an SIS epidemic in a 100x100 grid with a few nodes infected in the middle. We will display the epidemic at time 6, with and without the time series included. :: import networkx as nx import EoN import matplotlib.pyplot as plt G = nx.grid_2d_graph(100,100) #each node is (u,v) where 0<=u,v<=99 #we'll initially infect those near the middle initial_infections = [(u,v) for (u,v) in G if 45