Assessing Contagion Risk in a Financial Network