Initial version of runNetwork to process triggers until the network is drained. This version uses per-node queues.