Seol an Taifead seo mar Ríomhphost: General methodology for inferring failure-spreading dynamics in networks