Cascading
- class graph_tiger.cascading.Cascading(graph, runs=10, steps=100, l=0.8, r=0.2, **kwargs)
Bases:
Simulation
This class simulates cascading failures on a network [6].
- Parameters
graph – an undirected NetworkX graph
runs – an integer number of times to run the simulation
steps – an integer number of steps to run a single simulation
l – a float representing the maximum initial load for each node
r – a float representing the amount of redundancy in the network
**kwargs –
see parent class Simulation for additional options
- reset_simulation()
Resets the simulation between each run
- run_single_sim()
Run the attack simulation
- track_simulation(step)
Keeps track of important simulation information at each step of the simulation
- Parameters
step – current simulation iteration
- graph_tiger.cascading.main()