A few changes to resistor_networks and atomic_switch_networks