Nature of phase transitions of superconducting wire networks in a magnetic field