Superconducting networks in a magnetic field