Implementation of Gai-Kapadia Financial Contagion Model with bank merges.
Prasanna Gai and Sujit Kapadia. “Contagion in financial networks”. In: Proceedings of the Royal Society A: Mathematical, Physical and Engineering Sciences 466.2120 (2010), pp. 2401–2423.