Dear Christopher,
Congratulations on the development of a very useful contagion network model. I have been working along the same issues using production networks (in which economic shocks are considered as disease propagation), which are structurally different from your contagion model based on undirected graphs. I have changed few properties of your model to experiment with directed production graphs.
My question: except a change in "agentNeighborhood" code to "Catenate[{#1 -> #2}", is there any other place that needs to be adjusted to accommodate directed networks? If so, could you please let me know which parts of your code needs revising to also study shock propagation in directed networks?
Furthermore, reading the comments on your code, I wonder whether there is a fundamental difference between simple and efficient implementations. I thought they would both produce the same results, but apparently experiments by others in this forum indicate that they are different in several respects like peak infection and speed of infection. Am I right?
Look forward to hearing from you.
Tugrul Temel