Topological phase transition between the gap and the gapless superconductors