Financial Networks And Their Applications To The Stock Market