Superconductivity of networks. A percolation approach to the effects of disorder