Create a crisis spreading model in python: The dynamics of the crisis spreading model proceed as follows: (A) Each node
Posted: Sat May 14, 2022 3:17 pm
Create a crisis spreading model in python:
The dynamics of the crisis spreading model proceed as follows:
(A) Each node (country) is assigned a capacity C
given by its GDP value, and two countries i and j are connected by
a directed link given by the trade relationship with the associated
weight Wij given by the corresponding trade
volume. Suppose that a country i collapses. Then
the weights of all links of country i are
decreased by a fraction of f. And the total
decrement ΔW of either the incoming or outgoing
link weights of any countries connected to the collapsed country is
compared with the fraction t of its node capacity. If the total
decrement exceeds the threshold for any country, these countries
also collapse (country k, in this example), triggering an avalanche
of collapses. The link weights of newly-collapsed countries are
decreased by the fraction f, and the total decrement ΔW of each
country is re-evaluated. This process continues until there are no
more newly-collapsed countries.
The dynamics of the crisis spreading model proceed as follows:
(A) Each node (country) is assigned a capacity C
given by its GDP value, and two countries i and j are connected by
a directed link given by the trade relationship with the associated
weight Wij given by the corresponding trade
volume. Suppose that a country i collapses. Then
the weights of all links of country i are
decreased by a fraction of f. And the total
decrement ΔW of either the incoming or outgoing
link weights of any countries connected to the collapsed country is
compared with the fraction t of its node capacity. If the total
decrement exceeds the threshold for any country, these countries
also collapse (country k, in this example), triggering an avalanche
of collapses. The link weights of newly-collapsed countries are
decreased by the fraction f, and the total decrement ΔW of each
country is re-evaluated. This process continues until there are no
more newly-collapsed countries.