Ruin Probabilities for Risk Processes in Stochastic Networks